home *** CD-ROM | disk | FTP | other *** search
/ CICA 1993 April / CICA MS Windows - April 1993.iso / unzipped / toolbook / toolbox / toolbox.tbk (.txt) < prev   
Asymetrix ToolBook File  |  1992-10-22  |  442KB  |  4,295 lines

  1. -- Ramp creation program
  2. -- Written 
  3. HJeffrey Howard
  4. -- 1/20/92
  5. 4rflag, ramps, color1, color2, coords1, coords2, rtype, itext
  6. "startcolor" 
  7. "instructions" 
  8. "endcolor" 
  9. "Rectangle"
  10. rbounds 
  11.  & "," & 
  12. "Circle"
  13. ((x*x) + (y*y))
  14. "Select lower 
  15. corner."
  16. 0outer 
  17. circle."
  18. buttonUp
  19. buttonUp
  20. startcolor
  21. instructions
  22. endcolor
  23. instructions
  24. instructions
  25. 0,100,0
  26. 0,0,0
  27. background
  28. Rectangle
  29. bounds
  30. Circle
  31. bounds
  32. foreground
  33. Rectangle
  34. instructions
  35. Select lower right corner.
  36. Circle
  37. instructions
  38. Select outer bounds of circle.
  39. rbounds
  40. rflag
  41. ramps
  42. color1
  43. color2
  44. coords1
  45. coords2
  46. rtype
  47. itext
  48. ?,@R@x@
  49. 4rflag
  50. "instructions" 
  51. "Select 
  52. color."
  53. buttonUp
  54. buttonUp
  55. instructions
  56. Select end color.
  57. rflag
  58. End color
  59. 4rflag
  60. "instructions" 
  61. "Select 
  62. color."
  63. buttonUp
  64. buttonUp
  65. instructions
  66. Select start color.
  67. rflag
  68. Start color
  69. 4rflag, rtype, color1, color2, coords1, coords2
  70. "ramps" 
  71. "startcolor"
  72. "endcolor"
  73. buttonUp
  74. buttonUp
  75. background
  76. ramps
  77. clear
  78. foreground
  79. startcolor
  80. endcolor
  81. background
  82. group
  83. ramps
  84. foreground
  85. 0,100,0
  86. 0,0,0
  87. rflag
  88. rtype
  89. color1
  90. color2
  91. coords1
  92. coords2
  93. Make ramp
  94. clear
  95. 4coords1, coords2
  96. "ramps" 
  97. buttonUp
  98. buttonUp
  99. background
  100. ramps
  101. clear
  102. foreground
  103. coords1
  104. coords2
  105. Clear ramp
  106. rectangle
  107. 4rflag, rtype
  108. B"circle" 
  109. "rectType"
  110. buttonUp
  111. buttonUp
  112. rectangle
  113. circle
  114. rectangle
  115. rectType
  116. rflag
  117. rtype
  118. press
  119. Rectangle
  120. circle
  121. 4rtype
  122. "circle"
  123. "rectType"
  124. buttonUp
  125. buttonUp
  126. circle
  127. rectangle
  128. circle
  129. rectType
  130. rtype
  131. press
  132. false
  133. Circle
  134. startcolor
  135. 4rflag
  136. "instructions" 
  137. "Select 
  138. color."
  139. buttonUp
  140. buttonUp
  141. instructions
  142. Select start color.
  143. rflag
  144. endcolor
  145. 4rflag
  146. "instructions" 
  147. "Select 
  148. color."
  149. buttonUp
  150. buttonUp
  151. instructions
  152. Select end color.
  153. rflag
  154. rectType
  155. "rectType" 
  156. buttondown
  157. buttondown
  158. rectType
  159. 4recType
  160. "top2bottom"
  161. buttonUp
  162. buttonUp
  163. top2bottom
  164. recType
  165. 4recType
  166. "left2right"
  167. buttonUp
  168. buttonUp
  169. left2right
  170. recType
  171. horizontal
  172. 4recType
  173. "inouthoriz"
  174. buttonUp
  175. buttonUp
  176. inouthoriz
  177. recType
  178. verticle
  179. 4recType
  180. "inoutvert"
  181. buttonUp
  182. buttonUp
  183. inoutvert
  184. recType
  185. 4rflag, coords1, coords2
  186. psize 
  187. "0,0"
  188. "& "," & 
  189. t & "," & 
  190. rbounds 
  191. buttonUp
  192. buttonUp
  193. select
  194. bounds
  195. background
  196. foreground
  197. rbounds
  198. psize
  199. rflag
  200. coords1
  201. coords2
  202. press
  203. select
  204. 4rflag, rtype
  205. "instructions" 
  206. "Select upper 
  207. Scorner 
  208. "circle"
  209. buttonUp
  210. buttonUp
  211. select
  212. rectangle
  213. instructions
  214. Select upper left corner of rectangle.
  215. circle
  216. instructions
  217. Select center of circle.
  218. rflag
  219. rtype
  220. press
  221. Select
  222. 4ramps
  223. ("How many 
  224. buttonUp
  225. buttonUp
  226. How many ramps?
  227. ramps
  228. ramps
  229. No. of Ramps
  230. Close
  231. Main Menu
  232. buttonUp
  233. buttonUp
  234. "Are you sure that 
  235. want 
  236. Toolbox?" 
  237. f"Yes" 
  238. buttonUp
  239. buttonUp
  240. Are you sure that you want to exit Toolbox?
  241. About
  242. %border
  243. scrolling
  244. This ramp utility lets users create dynamic effects by ramping colors through an area of the screen.  The colors are evenly spaced through the ramps from the start color to the end color.  The ramps can be circular or rectanglular.  The circular ramps are created from outside to inside.  The rectangular ramps can be from top to bottom, from left to right, or from center to the edges.
  245. Instructions
  246. P9scrolled
  247. 1) Select "Make ramp" to have the ramp created for you in the background.  Each new "Make ramp" will erase the previous ramp created.  To save a ramp, switch to author mode, switch to background, and copy the group "ramps" to another application.
  248. 2) Select "Page" for full page or "select" to select an area of the screen.
  249. 3) Select "Circle" or "Rectangle" for the type of ramp.  With rectangular ramps, the direction of the ramp may also be selected.
  250. 4) Select "No. of Ramps" to change the number and size of each color in the ramp.  Larger numbers will create smoother ramps, but will take longer to create.
  251. 5) Select the start and end colors from the color palette on the screen.
  252. 6) The current bounds and number of ramps are displayed in the status window.
  253. Bounds
  254. bounds
  255. 0,0,9504,67685,35250
  256. Ramps
  257. ramps
  258. --Menu Generator
  259. --Code necessary 
  260. cSetup 
  261. below.
  262. Text which constructs
  263. --the 
  264. "menulister" 
  265. a part 
  266. "floppy".
  267. /can be 
  268. --modified.
  269. --Placement 
  270. these handlers 
  271. /levels
  272. 4hMenu
  273.     linkDLL user
  274. gGetMenu(
  275. gCreateMenu ()
  276.  DestroyMenu ( 
  277.  DeleteMenu ( 
  278. gSetMenu ( 
  279. gGetSubMenu ( 
  280.  GetMenuString ( 
  281.  GetMenuItemCount ( 
  282. gGetWindowWord ( 
  283.  AppendMenu ( 
  284.  DrawMenuBar ( 
  285. gGetParent ( 
  286.     translateWindowMessage 
  287. 4273 
  288. WM_COMMAND
  289. 4279 
  290. WM_INITMENUPOPUP
  291.     --sets up 
  292. menuSetup
  293. : hWnd, msg, wParam
  294. 4hPopupMenu
  295. >, lpLo, lpHi
  296. ;,menustring
  297. U < 2000
  298. menuString 
  299. &), 0 )
  300. " && 
  301. stripAmp val
  302. ~( "&", 
  303.  ) > 0 )
  304. ~( "&", 
  305. --Handler 
  306. , hSubMenu
  307. deleteMenu ( 
  308. , i - 1 ), 0, 1024 )
  309. destroyMenu ( 
  310. menuList 
  311. sourceText 
  312. "menuLister"
  313. menuText 
  314. tabCount ( 
  315. nextMenuText 
  316. Bi + 1 
  317. nextTC 
  318. stripTabs ( 
  319. i + 2 
  320. > TC 
  321. hNewMenu 
  322. , 16, 
  323. <= TC 
  324. flags 
  325. -- MF_SEPARATOR
  326. ?, i + 2000, 
  327. TC - 1
  328. i - 1
  329. NITMENUPOPUP
  330. enterBook
  331. leaveBook
  332. WM_COMMAND
  333. WM_INITMENUPOPUP
  334. menuSetup
  335. ipAmp
  336. tabCount
  337. stripAmp
  338. stripTabs
  339. enterBook
  340. GetMenu
  341. CreateMenu
  342. DestroyMenu
  343. DeleteMenu
  344. SetMenu
  345. GetSubMenu
  346. GetMenuString
  347. GetMenuItemCount
  348. GetWindowWord
  349. AppendMenu
  350. DrawMenuBar
  351. GetParent
  352. WM_COMMAND
  353. WM_INITMENUPOPUP
  354. menuSetup
  355. hMenu
  356. WM_INITMENUPOPUP
  357. hPopupMenu
  358. wParam
  359. leaveBook
  360. WM_COMMAND
  361. menuString
  362.                                                       
  363. menuString
  364. menuString
  365. GetMenuString
  366. menuString
  367. hPopupMenu
  368. menustring
  369. wParam
  370. stripAmp
  371. menuSetup
  372. GetMenuItemCount
  373. GetSubMenu
  374. deleteMenu
  375. destroyMenu
  376. CreateMenu
  377. menuLister
  378. tabCount
  379. tabCount
  380. stripTabs
  381. tabCount
  382. stripTabs
  383. stripTabs
  384. CreateMenu
  385. stripTabs
  386. AppendMenu
  387. stripTabs
  388. stripTabs
  389. stripTabs
  390. AppendMenu
  391. SetMenu
  392. flags
  393. hNewMenu
  394. j:to1
  395. nextTC
  396. nextMenuText
  397. menuText
  398. sourceText
  399. menuList
  400. hMenu
  401. hSubMenu
  402. tabCount
  403. stripTabs
  404. TOOLBOX FOR TOOLBOOK
  405. Redmon Group
  406. ,Tool:            Ramp
  407. --Programming 
  408. H:        Jeffrey S. Howard
  409. --Designs 
  410. H:            John 
  411. Veronica Cruz
  412. Daniel Lazenby
  413. --Last Modified 
  414. Date 
  415. :    February 2, 1992
  416. 4ramps, color1, color2, coords1, coords2, rtype, recType, itext
  417. "instructions"
  418. sysdrawdirect 
  419. "startcolor" 
  420. "endcolor" 
  421. "0,0"
  422. psize 
  423. & "," & 
  424.  & "," & 
  425. "top2bottom"
  426. rflag 
  427. Field "about" 
  428. X"tbkwin.dll"
  429. RGBtoHLS(
  430. HLStoRGB(
  431. B"Clear"
  432. h,l,s)
  433. h,l,s)
  434. "Rectangle"
  435. incs 
  436. (y2-y1)/
  437. "Left2right"
  438. (x2-x1)/
  439. "inouthoriz"
  440. (x2-x1)/
  441. startx 
  442. ((x2-x1)/2) + x1
  443. "inoutvert"
  444. (y2-y1)/
  445. starty 
  446. ((y2-y1)/2) + y1
  447. "Circle"
  448. (y2-y1)/
  449. rinc 
  450. (r2-r1)/
  451. ginc 
  452. (g2-g1)/
  453. binc 
  454. (b2-b1)/
  455. x1,y1 
  456. x2,y2
  457. x1,y1 
  458. x2,y2
  459. r1 < 0
  460. r1 > 255
  461. g1 < 0
  462. g1 > 255
  463. b1 < 0
  464. b1 > 255
  465. r1,g1,b1)
  466. savex 
  467. x2 - 
  468. x1,y1 
  469. x2,y2
  470. savey 
  471. y2 - 
  472. x1,y1 
  473. x2,y2
  474. x1,y1 
  475. x2,y2
  476. x1 + 
  477. y1 + 
  478. x2 - 
  479. y2 - 
  480. x1,y1 
  481. x2,y2
  482. rbounds 
  483.      & "," & 
  484. ((x*x) + (y*y))
  485. "Select lower 
  486. corner."
  487. 1outer 
  488. circle."
  489. leavepage
  490. enterpage
  491. buttonUp
  492. enterpage
  493. instructions
  494. ramps
  495. startcolor
  496. 240,50,100
  497. startcolor
  498. endcolor
  499. 0,0,0
  500. endcolor
  501. bounds
  502. rectangle
  503. top2bottom
  504. about
  505. tbkwin.dll
  506. RGBtoHLS
  507. HLStoRGB
  508. rflag
  509. psize
  510. ramps
  511. color1
  512. color2
  513. coords1
  514. coords2
  515. rtype
  516. recType
  517. itext
  518. leavepage
  519. tbkwin.dll
  520. instructions
  521. buttonUp
  522. Clear
  523. itext
  524. HLStoRGB
  525. HLStoRGB
  526. Rectangle
  527. top2bottom
  528. Left2right
  529. inouthoriz
  530. inoutvert
  531. Circle
  532. Rectangle
  533. top2bottom
  534. Left2right
  535. inouthoriz
  536. inoutvert
  537. Circle
  538. RGBtoHLS
  539. Rectangle
  540. top2bottom
  541. Left2right
  542. inouthoriz
  543. inoutvert
  544. Circle
  545. savey
  546. savex
  547. starty
  548. startx
  549. ramps
  550. color1
  551. color2
  552. coords1
  553. coords2
  554. rtype
  555. recType
  556. buttonUp
  557. startcolor
  558. instructions
  559. endcolor
  560. instructions
  561. instructions
  562. 0,100,0
  563. 0,0,0
  564. background
  565. Rectangle
  566. bounds
  567. Circle
  568. bounds
  569. foreground
  570. Rectangle
  571. instructions
  572. Select lower right corner.
  573. Circle
  574. instructions
  575. Select outer bounds of circle.
  576. rbounds
  577. rflag
  578. ramps
  579. color1
  580. color2
  581. coords1
  582. coords2
  583. rtype
  584. itext
  585. Animator
  586. Timer
  587. ColorMextrix1
  588. ColorMetrix1
  589. TOOLBOX FOR TOOLBOOK
  590. Redmon Group
  591. ,Tool:            PageLook
  592. --Programming 
  593. H:        Jeffrey S. Howard
  594. John 
  595. --Designs 
  596. H:            
  597. Veronica Cruz
  598. Daniel Lazenby
  599. --Last Modified 
  600. Date 
  601. :    October 20, 1992
  602. --Initializes 
  603. setup
  604. 4returnCnt
  605. sysfillColor 
  606. sysDrawDirect 
  607. J"instructions" 
  608. J"about" 
  609. B"pageLook" 
  610. closePageLook 
  611. 4tabCnt,tab_level
  612. ZitemCnt,i,targ
  613. " && 
  614. 0,1128 TO 3648,5403
  615. excludeTab 
  616. "objbackground"
  617. drawDirect 
  618. 81,1191 
  619. 1173,1491
  620. "Properties"
  621. "ms sans serif"
  622. "objproperties"
  623. propertyCheck;
  624. Paste
  625. nthe 
  626. H1200, 0
  627. "Script"
  628. "objscript"
  629. editScripts;
  630. H1200, 0
  631. "Close"
  632. "objclose"
  633. 54,1815 
  634. 3570,5334
  635. "PageObjects"
  636. fieldType 
  637. singleSelect
  638. 72,72,72
  639. selectedTextLines 
  640. 54,1494 
  641. 3594,1815
  642. 72, 0, 0
  643. noWrap
  644. "PropertyCheck"
  645. searching.
  646. Please Wait." 
  647. "pageObjects"
  648. ) - 6 
  649. number_of_items
  650. putname(
  651. --puts 
  652. lists 
  653. ? obj, 
  654. settab
  655. o & " " & 
  656. x <> "
  657. o(34) 
  658. o(34) 
  659. group_Items
  660. x, group_items)
  661. --Determines how many tabs 
  662. CRLF 
  663. ct <= 
  664. --Edits 
  665. selectedTExtLines 
  666. --Displays key 
  667. 4propertyChk,
  668. ,originalObjects
  669. =" & 
  670. K" & 
  671. p" & 
  672. {" & 
  673. i" & 
  674. O" & 
  675. a" & 
  676. =" & 
  677. K" & 
  678. p" & 
  679. {" & 
  680. i" & 
  681. O" & 
  682. a" & 
  683. =" & 
  684. K" & 
  685. p" & 
  686. {" & 
  687. a" & 
  688. =" & 
  689. }    " & 
  690. K" & 
  691. p" & 
  692. {" & 
  693. i" & 
  694. O" & 
  695. a" & 
  696. k& "baseLines" & 
  697. u" & 
  698. =" & 
  699. k& "drawTextDirect" & 
  700. K" & 
  701. p" & 
  702. {" & 
  703. k& "singleLine" & 
  704. i" & 
  705. O" & 
  706. a" & 
  707. =" & 
  708. K" & 
  709. p" & 
  710. {" & 
  711. i" & 
  712. O" & 
  713. a" & 
  714. u" & 
  715. =" & 
  716. K" & 
  717. Z" & 
  718. K" & 
  719. p" & 
  720. {" & 
  721. i" & 
  722. O" & 
  723. a" & 
  724. ) > 2 
  725.  <> "
  726. o(34) 
  727. o(34) 
  728. " && 
  729.  && "
  730. " && 
  731.  && "
  732. 9& y 
  733. 81,1191 
  734. 1173,1491
  735. "Modify"
  736. B"modify"
  737. modRequest;
  738. H1200,0
  739. "Return"
  740. returnObjects;
  741. modProps
  742. "The modification 
  743.  within 
  744. requires further development."
  745. --Modifies 
  746. 4modTarg,currentTarg,propertychk,newTarg,
  747. ) > 2 
  748.  <> "
  749. o(34) 
  750. o(34) 
  751. ("Change the" && 
  752.  && "
  753. " && 
  754.  && "
  755. o(34) & 
  756. o(34) 
  757. " && 
  758.  && "
  759. " && 
  760.  && "
  761. " && 
  762. revise your 
  763. " && 
  764.  && "
  765. wordX
  766. 9& newtarg 
  767. SysSuspend 
  768. --Returns 
  769. "propertycheck" 
  770. " && 
  771. ) - 6 
  772. --Closes 
  773. "Are you sure that 
  774. want 
  775. f"Yes" 
  776. leavePage
  777. editScripts
  778. propertyCheck
  779. enterPage
  780. modProps
  781. pageLook
  782. modRequest
  783. returnObjects
  784. settab
  785. closePageLook
  786. putname
  787. enterPage
  788. PageLook
  789. 0,100,0
  790. 0,0,0
  791. instructions
  792. instructions
  793. about
  794. about
  795. returnCnt
  796. leavePage
  797. pageLook
  798. AclosePageLook
  799. pageLook
  800. pageLook
  801. 0,100,0
  802. 0,0,0
  803. objbackground
  804. Properties
  805. ms sans serif
  806. objproperties
  807. objproperties
  808. to handle buttonUp;send propertyCheck;end
  809. Paste
  810. Script
  811. objscript
  812. to handle buttonUp;send editScripts;end
  813. Paste
  814. Close
  815. objclose
  816. to handle buttonUp;send closePageLook;end
  817. PageObjects
  818. ms sans serif
  819. to handle buttonUp;put selectedTextLines of self into i;put textLine i of text of self into text of field propertyCheck;end
  820. ms sans serif
  821. PropertyCheck
  822. PageLook is searching.  Please Wait.
  823. pageObjects
  824. pageObjects
  825. putname
  826. number_of_items
  827. itemCnt
  828. tabCnt
  829. tab_level
  830. putname
  831. settab
  832. pageObjects
  833. settab
  834. pageObjects
  835. pageObjects
  836. group
  837. pageObjects
  838. group_items
  839. putname
  840. group_Items
  841. tab_level
  842. itemCnt
  843. settab
  844. pageObjects
  845. pageObjects
  846. tab_level
  847. editScripts
  848. pageObjects
  849. pageObjects
  850. propertyCheck
  851. pageObjects
  852. pageObjects
  853. field PageObjects
  854. pageObjects
  855. propertyCheck
  856. propertyCheck
  857. irregularPolygon
  858. bounds
  859. drawDirect
  860. fillColor
  861. idNumber
  862. layer
  863. lineStyle
  864. object
  865. parent
  866. pattern
  867. position
  868. strokeColor
  869. transparent
  870. uniqueName
  871. vertices
  872. visible
  873. propertyCheck
  874. rectangle
  875. bounds
  876. drawDirect
  877. fillColor
  878. idNumber
  879. layer
  880. lineStyle
  881. object
  882. parent
  883. pattern
  884. position
  885. strokeColor
  886. transparent
  887. uniqueName
  888. vertices
  889. visible
  890. propertyCheck
  891. group
  892. bounds
  893. drawDirect
  894. idNumber
  895. layer
  896. object
  897. parent
  898. position
  899. uniqueName
  900. vertices
  901. visible
  902. propertyCheck
  903. ellipse
  904. bounds
  905. drawDirect
  906. fillColor
  907. idNumber
  908. layer
  909. lineStyle
  910. object
  911. parent
  912. pattern
  913. position
  914. strokeColor
  915. transparent
  916. uniqueName
  917. vertices
  918. visible
  919. propertyCheck
  920. field
  921. activated
  922. baseLines
  923. borderStyle
  924. bounds
  925. drawDirect
  926. drawTextDirect
  927. fieldType
  928. fillColor
  929. fontFace
  930. fontSize
  931. fontStyle
  932. idNumber
  933. indents
  934. layer
  935. object
  936. parent
  937. position
  938. scroll
  939. selectedTExtLines
  940. singleLine
  941. spacing
  942. strokeColor
  943. tabSpacing
  944. tabType
  945. textAlignment
  946. textOverflow
  947. transparent
  948. uniqueName
  949. vertices
  950. visible
  951. propertyCheck
  952. bounds
  953. drawDirect
  954. fillColor
  955. idNumber
  956. layer
  957. lineStyle
  958. object
  959. parent
  960. pattern
  961. position
  962. strokeColor
  963. transparent
  964. uniqueName
  965. vertices
  966. visible
  967. propertyCheck
  968. button
  969. borderStyle
  970. bounds
  971. caption
  972. checked
  973. drawDirect
  974. excludeTab
  975. fillColor
  976. fontFace
  977. fontSize
  978. fontStyle
  979. highlight
  980. idNumber
  981. invert
  982. layer
  983. object
  984. parent
  985. position
  986. strokeColor
  987. transparent
  988. uniqueName
  989. vertices
  990. visible
  991. pageObjects
  992. pageObjects
  993. into y
  994. pageObjects
  995. pageObjects
  996. pageObjects
  997. pageObjects
  998. Modify
  999. ms sans serif
  1000. Modify
  1001. modify
  1002. Paste
  1003. to handle buttonUp;send modRequest;end
  1004. modify
  1005. Return
  1006. Return
  1007. to handle buttonUp;send returnObjects;end
  1008. pageObjects
  1009. propertyChk
  1010. originalObjects
  1011. modProps
  1012. The modification of Properties within PageLook requires further development.
  1013. modRequest
  1014. pageObjects
  1015. propertyCheck
  1016. propertyChk
  1017. propertyChk
  1018. propertyChk
  1019. propertyChk
  1020. propertyChk
  1021. propertyChk
  1022. pageObjects
  1023. pageObjects
  1024. pageObjects
  1025. Change the
  1026. propertyChk
  1027. propertyChk
  1028. Please revise your modification.
  1029. after textLine x of text of field pageObjects
  1030. propertyChk
  1031. propertyCheck
  1032. propertyCheck
  1033. propertyCheck
  1034. clear
  1035. newtarg
  1036. propertyChk
  1037. propertyCheck
  1038. propertyCheck
  1039. wordX
  1040. pageObjects
  1041. modTarg
  1042. currentTarg
  1043. propertychk
  1044. newTarg
  1045. returnCnt
  1046. returnObjects
  1047. pageObjects
  1048. pageObjects
  1049. pageObjects
  1050. modify
  1051. return
  1052. clear
  1053. pageObjects
  1054. propertycheck
  1055. to handle buttonUp;put selectedTextLines of self into i;put textLine i of text of self into text of field propertyCheck;end
  1056. pageObjects
  1057. pageObjects
  1058. putname
  1059. tab_level
  1060. number_of_items
  1061. originalObjects
  1062. returnCnt
  1063. closePageLook
  1064. Are you sure that you want to close PageLook?
  1065. objscript
  1066. objbackground
  1067. PageObjects
  1068. objclose
  1069. modify
  1070. return
  1071. PropertyCheck
  1072. clear
  1073. pageLook
  1074. objproperties
  1075. 4hMenu, hSubMenu
  1076. 4newMenuCount
  1077. "menuList"
  1078. c" & i && "& 
  1079. subMenu" & i 
  1080. submenu) 
  1081. subtlc
  1082. subTlc
  1083. --Checks 
  1084. Menus have been started
  1085. "No menus 
  1086. .created."
  1087. setMenu ( 
  1088. , 0 )
  1089. GetMenuItemCount ( 
  1090. deleteMenu ( GetSubMenu ( 
  1091. i - 1 ), 0, 1024 )
  1092. destroyMenu ( 
  1093. CreateMenu ()
  1094. sourceText 
  1095. menuText 
  1096. tabCount ( 
  1097. nextMenuText 
  1098. Bi + 1 
  1099. nextTC 
  1100. stripTabs ( 
  1101. i + 2 
  1102. > TC 
  1103. hNewMenu 
  1104. AppendMenu ( 
  1105. , 16, 
  1106. <= TC 
  1107. flags 
  1108. -- MF_SEPARATOR
  1109. >, i + 2000, 
  1110. TC - 1
  1111. SetMenu ( 
  1112. i - 1
  1113. buttonUp
  1114. tabCount
  1115. stripTabs
  1116. buttonUp
  1117. menuList
  1118. put text of field menu
  1119. & crlf after text of field menuList
  1120. field subMenu
  1121. submenu
  1122. subTlc
  1123. submenu
  1124. menuList
  1125. menuList
  1126. menuList
  1127. No menus have been created.
  1128. GetMenuItemCount
  1129. GetSubMenu
  1130. deleteMenu
  1131. destroyMenu
  1132. CreateMenu
  1133. menuList
  1134. tabCount
  1135. tabCount
  1136. stripTabs
  1137. tabCount
  1138. stripTabs
  1139. stripTabs
  1140. CreateMenu
  1141. stripTabs
  1142. AppendMenu
  1143. stripTabs
  1144. stripTabs
  1145. stripTabs
  1146. AppendMenu
  1147. SetMenu
  1148. flags
  1149. hNewMenu
  1150. j:to1
  1151. nextTC
  1152. nextMenuText
  1153. menuText
  1154. sourceText
  1155. menuList
  1156. s:to1
  1157. subtlc
  1158. subMenu
  1159. newMenuCount
  1160. hMenu
  1161. hSubMenu
  1162. tabCount
  1163. stripTabs
  1164. Intro
  1165. :PHYSSIZE
  1166. Intro
  1167. enterPage
  1168. enterPage
  1169. Intro
  1170. WrapCounter
  1171. Colormetrix2
  1172. Intro
  1173. TOOLBOX FOR TOOLBOOK
  1174. Redmon Group
  1175. ,Tool:            ColorMetrix
  1176. --Programming 
  1177. H:        Jeffrey S. Howard
  1178. --Designs 
  1179. H:            John 
  1180. Veronica Cruz
  1181. Daniel Lazenby
  1182. --Last Modified 
  1183. Date 
  1184. :    February 2, 1992
  1185. 4ret, r, g, b, zoom, fs, hls, shls, bhls, fhls, cont
  1186. RGBtoHLS(r,g,b)
  1187. 79.1875 
  1188. 71.6875
  1189. 79.3125
  1190. "stroke"
  1191. "test" 
  1192. setAppColors
  1193. setfsbutton
  1194. B"L32"
  1195. 4fs, rgb, 
  1196. "outline" 
  1197. tb - 18), (
  1198. tb - 15)
  1199. 79.1875 
  1200. 71.6875
  1201. 79.3125
  1202. HLStoRGB(
  1203. setnums
  1204. setoutline
  1205. inc, r, g, b
  1206. % = 64
  1207. / 64) * 64)
  1208. / 64) * 64)
  1209. / 64) * 64)
  1210. ) >= 255
  1211. + (2 * 
  1212. )) > 256
  1213. ) > 256
  1214. - (4 * inc)
  1215. blocknum 
  1216. - (3 * 
  1217. - (2 * 
  1218. r < 0
  1219. r < 0
  1220. rgb) >= 255
  1221. + (2 * 
  1222. ) > 256
  1223.  > 256
  1224. - (4 * 
  1225. - (3 * 
  1226. - (2 * 
  1227. g < 0
  1228. g + inc
  1229. g < 0
  1230. + (2 * 
  1231. ) > 256
  1232.  > 256
  1233. - (4 * 
  1234. - (3 * 
  1235. - (2 * 
  1236. b < 0
  1237. b + inc
  1238. b < 0
  1239. cbox 
  1240. "r" & 
  1241. & "c" & (((
  1242. -1)*5)+col)
  1243. tb - 18), (
  1244. tb - 15)
  1245. setcolorszoom
  1246. boxnum 
  1247. numf 
  1248. "rnum" & 
  1249. M<= 125
  1250. = 11 
  1251. = 16 
  1252. "gnum" & 
  1253. "r" & 
  1254. & "c" & col
  1255. "bnum" & row
  1256. 212,79.3125,71.6875
  1257. K    1,g1,b1)
  1258. buttondown
  1259. enterpage
  1260. setoutline
  1261. setcolorszoom
  1262. enterpage
  1263. RGBtoHLS
  1264. stroke
  1265. [1setAppColors
  1266. setfsbutton
  1267. buttonup
  1268. setfsbutton
  1269. buttondown
  1270. outline
  1271. stroke
  1272. [1setAppColors
  1273. HLStoRGB
  1274. setoutline
  1275. outline
  1276. blocknum
  1277. setcolorszoom
  1278. setoutline
  1279. RGBtoHLS
  1280. blocknum
  1281. boxnum
  1282. 4newMenuCount
  1283. chas 
  1284. xbeen created yet."
  1285. submenu" & i
  1286. 0,100,0
  1287. sysStrokecolor 
  1288. 0,0,0
  1289. "floppy"
  1290. 3660, 3600 
  1291. 3660, 2550 
  1292. 3690, 2535 
  1293. 4710, 2535 
  1294. 4740, 2565 
  1295. 4740, 3585 
  1296. 4710, 3630 
  1297. 3675, 3630
  1298. "obj1"
  1299. 3765,2610 
  1300. 4590,3135 
  1301. 0, 0, 0
  1302. "menuLister"
  1303. "floppyLabel"
  1304.  Scripts" 
  1305. 4320,3195 
  1306. 4605,3630
  1307. "obj2"
  1308. 3945,3195 
  1309. 4455,3630 
  1310. "obj3"
  1311. 4050,3270 
  1312. 4200,3555 
  1313. "obj4"
  1314. 4635,2625 
  1315. 4695,2685 
  1316. 0, 0, 0
  1317. "obj5"
  1318. drawDirect 
  1319.  Test
  1320. "scriptHolder"
  1321. textLinecount(
  1322. subMenu" & i & ") 
  1323. scriptChk"
  1324. "EditMode" 
  1325. nthe 
  1326. 555, 4110
  1327. buttonUp
  1328. buttonUp
  1329. A menu has not been created yet.
  1330. A menu has not been created yet.
  1331. hide field submenu
  1332. floppy
  1333. clear
  1334. menuLister
  1335. paste
  1336. floppyLabel
  1337. Menu Scripts
  1338. menuLister
  1339. floppyLabel
  1340. group
  1341. floppy
  1342. scriptHolder
  1343. put textLinecount(text of field subMenu
  1344. ) into t
  1345. put textLine x of text of field subMenu
  1346. into scriptChk
  1347. scriptHolder
  1348. scriptHolder
  1349. clear
  1350. scriptHolder
  1351. clear
  1352. menuBar
  1353. floppy
  1354. EditMode
  1355. floppy
  1356. scriptHolder
  1357. floppy
  1358. menuList
  1359. menuLister
  1360. scriptChk
  1361. x:to2
  1362. i:to1
  1363. newMenuCount
  1364. TOOLBOX FOR TOOLBOOK
  1365. Copyright(Work 
  1366. Process) Redmon Group
  1367. FTool:            ColorMetrix
  1368. --Programming 
  1369. H:        Jeffrey S. Howard
  1370. --Designs 
  1371. H:            John 
  1372. Veronica Cruz
  1373. Daniel Lazenby
  1374. --Last Modified 
  1375. Date 
  1376. :    February 2, 1992
  1377. --NOTE: 
  1378.  program which 
  1379. being made available 
  1380. Asymetrix 
  1381. evaluation
  1382. --        purposes only.
  1383. 4r, ret, zoom, fs, rgb, hls, fhls, shls, bhls, cont, appname
  1384. 4bgcurr
  1385. "fill"
  1386. "192,192,192"
  1387. "0,75.3125,0"
  1388. "0,75.3125,0"
  1389. "0,0,0"
  1390. "0,100,0"
  1391. #"spectrum.ico"
  1392. "no such file"
  1393. icon 
  1394. X"tbkwin.dll"
  1395. RGBtoHLS(
  1396. HLStoRGB(
  1397. setAppColors
  1398. 4atype, 
  1399.  toolbook
  1400. c"OK"
  1401. newappname 
  1402. "(Untitled)"
  1403. "No other Toolbook 
  1404. Open another 
  1405. f"OK"
  1406. reqtext 
  1407. apply has changed.
  1408. f"OK" 
  1409. "Cancel"
  1410. "All"
  1411. setAll
  1412. "Background"
  1413. setBackground
  1414. "Selection"
  1415. setSelection
  1416. SetAll
  1417. Z something 
  1418. " && 
  1419.  ToolBook
  1420. " && 
  1421. " && 
  1422. SetBackground
  1423. " && 
  1424. SetSelection
  1425. " && 
  1426. " && 
  1427. setfsbutton
  1428. 4fs, 
  1429. "applyToWhat"
  1430.             --
  1431. B"stroke" 
  1432. 0,75.3125,0
  1433.             --
  1434. B"bg" 
  1435. 0,75.3125,0
  1436.             --
  1437. 0,100,0
  1438. "test"
  1439.             --
  1440. 0,75.3125,0
  1441.             --
  1442. B"bg" 
  1443. 0,75.3125,0
  1444.             --
  1445. 0,100,0
  1446. B"bg" 
  1447.             --
  1448. 0,75.3125,0
  1449.             --
  1450. 0,75.3125,0
  1451.             --
  1452. B"bg" 
  1453. 0,100,0
  1454. setoutline 
  1455. eBackground
  1456. setAppColors
  1457. enterBackground
  1458. SetAll
  1459. SetBackground
  1460. SetSelection
  1461. leaveBackground
  1462. setfsbutton
  1463. enterBackground
  1464. 192,192,192
  1465. 0,75.3125,0
  1466. 0,75.3125,0
  1467. 0,0,0
  1468. 0,100,0
  1469. tbkwin.dll
  1470. RGBtoHLS
  1471. HLStoRGB
  1472. bgcurr
  1473. appname
  1474. leaveBackground
  1475. tbkwin.dll
  1476. setAppColors
  1477. name of this book
  1478. (Untitled)
  1479. No other Toolbook application is open at this time.  Open another Toolbook application to use this command.
  1480. Toolbook application to apply has changed.  The new application is 
  1481. Cancel
  1482. setAll
  1483. Background
  1484. |EsetBackground
  1485. Selection
  1486. L&setSelection
  1487. reqtext
  1488. newappname
  1489. toolbook
  1490. atype
  1491. appname
  1492. SetAll
  1493. selection
  1494. No selection.  Select something in another Toolbook application.
  1495. set fillcolor of selection to
  1496. ToolBook
  1497. set strokecolor of selection to
  1498. ToolBook
  1499. set fillcolor of this background to
  1500. ToolBook
  1501. Toolbook
  1502. SetBackground
  1503. name of this book
  1504. No application open.  Open another Toolbook application.
  1505. set fillcolor of this background to
  1506. ToolBook
  1507. Toolbook
  1508. SetSelection
  1509. selection
  1510. No selection.  Select something in another Toolbook application.
  1511. set fillcolor of selection to
  1512. ToolBook
  1513. set strokecolor of selection to
  1514. ToolBook
  1515. Toolbook
  1516. setfsbutton
  1517. buttonDown
  1518. applyToWhat
  1519. stroke
  1520. stroke
  1521. HLStoRGB
  1522. setoutline
  1523. ColorMetrix1
  1524.  F x 
  1525. !@!r!
  1526. ":"l"
  1527. #4#f#
  1528. #.$`$
  1529. $(%Z%
  1530. 7D8p9
  1531. M&MLMrM
  1532. outline
  1533. 4 Hi-Res Pure Colorss
  1534. r1c10
  1535. r2c10
  1536. r3c10
  1537. r4c10
  1538. r5c10
  1539. r1c11
  1540. r2c11
  1541. r3c11
  1542. r4c11
  1543. r5c11
  1544. r1c12
  1545. r2c12
  1546. r3c12
  1547. r4c12
  1548. r5c12
  1549. r1c13
  1550. r2c13
  1551. r3c13
  1552. r4c13
  1553. r5c13
  1554. r1c14
  1555. r2c14
  1556. r3c14
  1557. r4c14
  1558. r5c14
  1559. r1c15
  1560. r2c15
  1561. r3c15
  1562. r4c15
  1563. r5c15
  1564. r1c16
  1565. r2c16
  1566. r3c16
  1567. r4c16
  1568. r5c16
  1569. r1c17
  1570. r2c17
  1571. r3c17
  1572. r4c17
  1573. r5c17
  1574. r1c18
  1575. r2c18
  1576. r3c18
  1577. r4c18
  1578. r5c18
  1579. r1c19
  1580. r2c19
  1581. r3c19
  1582. r4c19
  1583. r5c19
  1584. r1c20
  1585. r2c20
  1586. r3c20
  1587. r4c20
  1588. r5c20
  1589. r1c21
  1590. r2c21
  1591. r3c21
  1592. r4c21
  1593. r5c21
  1594. r1c22
  1595. r2c22
  1596. r3c22
  1597. r4c22
  1598. r5c22
  1599. r1c23
  1600. r2c23
  1601. r3c23
  1602. r4c23
  1603. r5c23
  1604. r1c24
  1605. r2c24
  1606. r3c24
  1607. r4c24
  1608. r5c24
  1609. r1c25
  1610. r2c25
  1611. r3c25
  1612. r4c25
  1613. r5c25
  1614. 16 Pure VGA Colors
  1615. 8514/A special  colorslors
  1616. gnum5
  1617. gnum3
  1618. gnum1
  1619. XGAA/A special  colorslors
  1620. bnum1
  1621. bnum2
  1622. bnum3
  1623. bnum4
  1624. bnum5
  1625. gnum2
  1626. gnum4
  1627. rnum1
  1628. rnum2
  1629. rnum3
  1630. rnum4
  1631. rnum5
  1632. Apply Colors
  1633. 1)    Select either the "Background", "Fill Color", or "Stroke Color" radio buttons.  Click the left mouse button on a color from the matrix above.  
  1634.         - Background will change the color of this          
  1635.               background;
  1636.         - Fill Color will change the fillcolor of this field;
  1637.         - Stroke Color will change the strokecolor of this 
  1638.                 field to the nearest pure color.
  1639. 2)    Select a pure color from the boxes at the top of the screen.
  1640. 3)    Select a "Level of Shade" between 1 and 64 to change the values of the colors around the selected color.
  1641. 4)    To add the selected color to objects in an application:
  1642.     a)    Open the target application;
  1643.     b)     Select the target object;
  1644.     c)     Return to Colormetrix;
  1645.     d)     Select either "Fill Color" or "Stroke Color";
  1646.     e)     Click the "Apply Colors" button;
  1647.     f )    Choose "Continuously" to continuously vary the         color of the selected object in the target                     application. The continuous application of colors         must be cancelled before applying a color to a             different object.
  1648.     g)     Choose "Once" to change the color of the                 selected object one time.
  1649. 5)    To add the selected color to a background in an application:
  1650.     a)     Open the target application;
  1651.     b)     Go to a page using the target background;
  1652.     c)     Return to Colormetrix;
  1653.     d)     Select "Background";
  1654.     e)     Click the "Apply Colors" button;
  1655.     f )    Choose "Continuous" to continuously vary the             color of the selected background in the target             application.  The continuous application of colors         must be cancelled before applying a color to a             different     background.
  1656.     g)    Choose "Once" to change the color of the selected     background one time.
  1657. 4bgcurr
  1658. "colormetrix2"
  1659. buttonUp
  1660. buttonUp
  1661. colormetrix2
  1662. bgcurr
  1663. Color Bars
  1664. Level
  1665. Shadee
  1666. Close
  1667. Main Menu
  1668. buttonUp
  1669. buttonUp
  1670. "Are you sure that 
  1671. want 
  1672. close Toolbox?" 
  1673. f"Yes" 
  1674. buttonUp
  1675. buttonUp
  1676. Are you sure that you want to close Toolbox?
  1677. Instructions
  1678. This utility allows quick and accurate access to any of the over 16 million available colors (actually, only just over 2 million colors are available in Toolbook).
  1679. Windows 3.0 uses a RGB color format whereas ToolBook uses HLS.  Colormetrix allows the developer to visually select an RGB color and convert it to HLS rather than guessing at ToolBook's numeric equivalent.  Using the Level options, the user can adjust the amount of shade from 1 to 64 levels.  The fillcolor and strokecolor of the Instruction field will change to the selected color.  
  1680. Depending upon whether the "Background", "Fill Color", or "Stroke Color" radio buttons are checked, the "Apply Colors" button will apply the selected color to the targetted selection or background within an application. 
  1681. The "Color Bars " allows the user to access the Colormetrix Color Bars.  These Color Bars are used to directly convert between RGB and HLS.
  1682. ApplyToWhat
  1683. buttonDown
  1684. buttonDown
  1685. setfsbutton
  1686. buttonUp
  1687. buttonUp
  1688. setfsbutton
  1689. Background
  1690. setfsbutton
  1691. buttonUp
  1692. buttonUp
  1693. setfsbutton
  1694. Fill Color
  1695. stroke
  1696. setfsbutton
  1697. buttonUp
  1698. buttonUp
  1699. setfsbutton
  1700. Stroke Color
  1701. 0,0,0
  1702. buttonDown
  1703. buttonDown
  1704. 4zoom
  1705. 240,50,100
  1706.  <> 256
  1707. lbox 
  1708. "L" & 
  1709. 0,75.3125,0
  1710. "L" & 
  1711. 0,100,0
  1712. setcolorszoom
  1713. setoutline
  1714. buttonUp
  1715. buttonUp
  1716. issetcolorszoom
  1717. setoutline
  1718. 4zoom
  1719. 240,50,100
  1720. lbox 
  1721. "L" & 
  1722. 0,75.3125,0
  1723. "L" & 
  1724. 0,100,0
  1725. setcolorszoom
  1726. buttonUp
  1727. buttonUp
  1728. issetcolorszoom
  1729. 4zoom
  1730. 240,50,100
  1731. lbox 
  1732. "L" & 
  1733. 0,75.3125,0
  1734. "L" & 
  1735. 0,100,0
  1736. setcolorszoom
  1737. buttonUp
  1738. buttonUp
  1739. issetcolorszoom
  1740. 4zoom
  1741. 240,50,100
  1742. lbox 
  1743. "L" & 
  1744. 0,75.3125,0
  1745. "L" & 
  1746. 0,100,0
  1747. setcolorszoom
  1748. buttonUp
  1749. buttonUp
  1750. issetcolorszoom
  1751. 4zoom
  1752. 240,50,100
  1753. lbox 
  1754. "L" & 
  1755. 0,75.3125,0
  1756. "L" & 
  1757. 0,100,0
  1758. setcolorszoom
  1759. buttonUp
  1760. buttonUp
  1761. issetcolorszoom
  1762. 4zoom
  1763. 240,50,100
  1764. lbox 
  1765. "L" & 
  1766. 0,75.3125,0
  1767. "L" & 
  1768. 0,100,0
  1769. setcolorszoom
  1770. buttonUp
  1771. buttonUp
  1772. issetcolorszoom
  1773. 4zoom
  1774. 240,50,100
  1775. lbox 
  1776. "L" & 
  1777. 0,75.3125,0
  1778. "L" & 
  1779. 0,100,0
  1780. setcolorszoom
  1781. buttonUp
  1782. buttonUp
  1783. issetcolorszoom
  1784. ColorMetrix
  1785. TOOLBOX FOR TOOLBOOK
  1786. Redmon Group
  1787. --Programming 
  1788. H:        John 
  1789. Jeffrey S. Howard
  1790. --Designs 
  1791. H:            
  1792. Veronica Cruz
  1793. Daniel Lazenby
  1794. --Last Modified 
  1795. Date 
  1796. :    February 2, 1992
  1797. 4menuVisit
  1798. menuSetup
  1799. colormetrixSetup
  1800. c"File" 
  1801. c"Edit" 
  1802. c"Text" 
  1803. c"Page" 
  1804. c"Help" 
  1805. "&Open" 
  1806. "E&xit" 
  1807. c"&Tools" 
  1808. e"&About" 
  1809. "Animator" 
  1810. "Colormetrix" 
  1811. "Eat Clicks" 
  1812. "MenuMaker" 
  1813. "PageLook" 
  1814. "Ramp" 
  1815. "Timer" 
  1816. "WrapTextCounter" 
  1817. 0,100,0
  1818. "test" 
  1819. "colormetrix1" 
  1820. 0,100,0
  1821. 0,0,0
  1822. animator
  1823. pageLook
  1824. Menumaker
  1825. "menuMaker"
  1826. wraptextcounter
  1827. "wrapCounter"
  1828. eatClicks
  1829. timer
  1830. "Are you sure that 
  1831. want 
  1832. Toolbox?" 
  1833. f"Yes" 
  1834. about
  1835. /"Toolbox_menu" 
  1836. --Compacts books 
  1837. fSAVE As.. Command
  1838. compact
  1839. bookNames
  1840. !) - 2 
  1841. "bak"
  1842. "tbkfile.dll"
  1843.         INT removeFile(STRING)
  1844.     unLinkDll "tbkFile.
  1845. keyDown
  1846. enterPage
  1847. animator
  1848. pageLook
  1849. reader
  1850. Menumaker
  1851. leaveBook
  1852. wraptextcounter
  1853. menuSetup
  1854. eatClicks
  1855. colormetrixSetup
  1856. colormetrix
  1857. timer
  1858. enterBook
  1859. about
  1860. compact
  1861. enterBook
  1862. sizeToPage
  1863. reader
  1864. menuSetup
  1865. colormetrixSetup
  1866. menuVisit
  1867. leaveBook
  1868. enterPage
  1869. reader
  1870. menuSetup
  1871. &File
  1872. &Open
  1873. E&xit
  1874. &Tools
  1875. &About
  1876. Tools
  1877. Tools
  1878. Animator
  1879. Tools
  1880. Colormetrix
  1881. Tools
  1882. Eat Clicks
  1883. Tools
  1884. MenuMaker
  1885. Tools
  1886. PageLook
  1887. Tools
  1888. Tools
  1889. Timer
  1890. Tools
  1891. WrapTextCounter
  1892. Tools
  1893. colormetrixSetup
  1894. Colormetrix
  1895. colormetrix1
  1896. colormetrix1
  1897. keyDown
  1898. author
  1899. animator
  1900. animator
  1901. pageLook
  1902. pageLook
  1903. Menumaker
  1904. menuMaker
  1905. wraptextcounter
  1906. wrapCounter
  1907. eatClicks
  1908. eatClicks
  1909. colormetrix
  1910. colormetrix1
  1911. timer
  1912. timer
  1913. Are you sure that you want to exit Toolbox?
  1914. about
  1915. buttonUp
  1916. About
  1917. Toolbox_menu
  1918. compact
  1919. tbkfile.dll
  1920. removeFile
  1921. removeFile
  1922. tbkFile.dll
  1923. bookNames
  1924. 4cont, atype, appname
  1925.  toolbook
  1926. c"OK"
  1927. newappname 
  1928. "(Untitled)"
  1929. "No other Toolbook 
  1930. Open another 
  1931. f"OK"
  1932. reqtext 
  1933. apply has changed.
  1934. f"OK" 
  1935. "Cancel"
  1936. "Apply colors 
  1937. & "."
  1938. f"Continue" 
  1939. "Stop"
  1940. & "."
  1941. f"Continuously" 
  1942. "Once" 
  1943. f"All" 
  1944. "Background" 
  1945. "Selection"
  1946. setAppColors
  1947. buttonUp
  1948. buttonUp
  1949. name of this book
  1950. (Untitled)
  1951. No other Toolbook application is open at this time.  Open another Toolbook application to use this command.
  1952. Toolbook application to apply has changed.  The new application is 
  1953. Cancel
  1954. Apply colors to 
  1955. Continue
  1956. Apply colors to 
  1957. Continuously
  1958. Cancel
  1959. cancel
  1960. Continuously
  1961. Apply type?
  1962. Background
  1963. Selection
  1964. [1setAppColors
  1965. reqtext
  1966. newappname
  1967. toolbook
  1968. atype
  1969. appname
  1970. ColorMetrix
  1971. TOOLBOX FOR TOOLBOOK
  1972. Redmon Group
  1973. ,Tool:            Timer
  1974. --Programming 
  1975. H:        Jeffrey S. Howard
  1976. --Designs 
  1977. H:            John 
  1978. Veronica Cruz
  1979. Daniel Lazenby
  1980. --Last Modified 
  1981. Date 
  1982. :    February 2, 1992
  1983. 4tflag1, tflag2, currtime
  1984. Xuser
  1985. GetTickCount()
  1986. B"time1" 
  1987. "Start 
  1988. "timerstart1"
  1989. "timerend1"
  1990. "starttime1"
  1991. "stoptime1"
  1992. B"time2" 
  1993. "timerstart2"
  1994. "timerend2"
  1995. "starttime2"
  1996. "stoptime2"
  1997. J"instructions" 
  1998. J"about" 
  1999. t1, t2, 
  2000. gettime1
  2001. gettime2
  2002. 4tstart1
  2003. 4t1, 
  2004. newt 
  2005. t1 / 1000
  2006. %"#.000"
  2007. 4tstart2
  2008. 4t2, 
  2009. t2 / 1000
  2010. %"#.000"
  2011. starttime1
  2012. leavepage
  2013. gettime1
  2014. starttime2
  2015. enterpage
  2016. gettime2
  2017. enterpage
  2018. GetTickCount
  2019. time1
  2020. Start Time
  2021. timerstart1
  2022. timerend1
  2023. starttime1
  2024. stoptime1
  2025. time2
  2026. Start Time
  2027. timerstart2
  2028. timerend2
  2029. starttime2
  2030. stoptime2
  2031. currtime
  2032. instructions
  2033. instructions
  2034. about
  2035. about
  2036. tflag1
  2037. tflag2
  2038. currtime
  2039. leavepage
  2040. Egettime1
  2041. timerstart1
  2042. Egettime2
  2043. timerstart2
  2044. currtime
  2045. tflag1
  2046. tflag2
  2047. currtime
  2048. starttime1
  2049. GetTickCount
  2050. tstart1
  2051. gettime1
  2052. GetTickCount
  2053. #.000
  2054. tstart1
  2055. starttime2
  2056. GetTickCount
  2057. tstart2
  2058. gettime2
  2059. GetTickCount
  2060. #.000
  2061. tstart2
  2062. Colormetrix2
  2063. )$*J*
  2064. *<+b+
  2065. ,@,f,
  2066. .(0N0t0
  2067. 0@1D4H7L:
  2068. U.UTU
  2069. U0VlV
  2070. XvXBY
  2071. [r\>]
  2072. `Hbnb
  2073. 42Fa+
  2074. hdown
  2075. uttondown
  2076. buttonstilldown
  2077. buttondown
  2078. buttonup
  2079. buttondown
  2080. hdown
  2081. buttonstilldown
  2082. hdown
  2083. buttonup
  2084. rdown
  2085. uttondown
  2086. buttonstilldown
  2087. buttondown
  2088. buttonup
  2089. buttondown
  2090. rdown
  2091. buttonstilldown
  2092. rdown
  2093. buttonup
  2094. ApplyToWhat
  2095. buttonDown
  2096. buttonDown
  2097. setfsbutton
  2098. buttonUp
  2099. buttonUp
  2100. setfsbutton
  2101. Background
  2102. setfsbutton
  2103. buttonUp
  2104. buttonUp
  2105. setfsbutton
  2106. Fill Color
  2107. stroke
  2108. setfsbutton
  2109. buttonUp
  2110. buttonUp
  2111. setfsbutton
  2112. Stroke Color
  2113. 4ret, bgcurr
  2114. "Keep color?" 
  2115. f"Yes" 
  2116. "No" 
  2117. "Cancel"
  2118. "colormetrix1"
  2119. buttonUp
  2120. buttonUp
  2121. Keep color?
  2122. Cancel
  2123. Cancel
  2124. colormetrix1
  2125. bgcurr
  2126. Return
  2127. 8514/A special  colorslors
  2128. XGAA/A special  colorslors
  2129. Slide the bars to change the color or click on the value boxes to change the color values.alues...m in on a color.  Use the Reset button to restore the spectrum colors or to get a gray scale or shades of red, green, or blue.......
  2130. Apply Colors
  2131. ("Hue value?" 
  2132. isnum(n) 
  2133. cn < 0 
  2134. n > 360
  2135. ("Invalid 
  2136. Select a 
  2137. zbetween 0 
  2138. sethbar    
  2139. buttonUp
  2140. buttonUp
  2141. Hue value?
  2142. isnum
  2143. Invalid number.  Select a number between 0 and 360.  Hue value?
  2144. isnum
  2145. [7sethbar
  2146. ("Lightness value?" 
  2147. isnum(n) 
  2148. cn < 0 
  2149. n > 100
  2150. ("Invalid 
  2151. Select a 
  2152. zbetween 0 
  2153. setlbar    
  2154. buttonUp
  2155. buttonUp
  2156. Lightness value?
  2157. isnum
  2158. Invalid number.  Select a number between 0 and 100.  Lightness value?
  2159. isnum
  2160. :setlbar
  2161. 50.1875
  2162. ("Saturation value?" 
  2163. isnum(n) 
  2164. cn < 0 
  2165. n > 100
  2166. ("Invalid 
  2167. Select a 
  2168. zbetween 0 
  2169. setsbar    
  2170. buttonUp
  2171. buttonUp
  2172. Saturation value?
  2173. isnum
  2174. Invalid number.  Select a number between 0 and 100.  Saturation value?
  2175. isnum
  2176. @setsbar
  2177. 100375502
  2178. r value
  2179. g value
  2180. b value
  2181. ("Red value?" 
  2182. isnum(n) 
  2183. cn < 0 
  2184. n > 256
  2185. ("Invalid 
  2186. Select a 
  2187. zbetween 0 
  2188. setrbar    
  2189. buttonUp
  2190. buttonUp
  2191. Red value?
  2192. isnum
  2193. Invalid number.  Select a number between 0 and 256.  Red value?
  2194. isnum
  2195. ?setrbar
  2196. ("Green value?" 
  2197. isnum(n) 
  2198. cn < 0 
  2199. n > 256
  2200. ("Invalid 
  2201. Select a 
  2202. zbetween 0 
  2203. setgbar    
  2204. buttonUp
  2205. buttonUp
  2206. Green value?
  2207. isnum
  2208. Invalid number.  Select a number between 0 and 256.  Green value?
  2209. isnum
  2210. 6setgbar
  2211. ("Blue value?" 
  2212. isnum(n) 
  2213. cn < 0 
  2214. n > 256
  2215. ("Invalid 
  2216. Select a 
  2217. zbetween 0 
  2218. setbbar    
  2219. buttonUp
  2220. buttonUp
  2221. Blue value?
  2222. isnum
  2223. Invalid number.  Select a number between 0 and 256.  Blue value?
  2224. isnum
  2225. 2setbbar
  2226. Close
  2227. Main Menu
  2228. buttonUp
  2229. buttonUp
  2230. Instructions
  2231. The "Color Bars " allows the user to access the Colormetrix Color Bars.  These Color Bars are used to directly convert between RGB and HLS.  The HLS and RGB values can be modified by using the slider bars above or clicking on the numeric values in the boxes above.
  2232. 4 Hi-Res Pure Colorss
  2233. 16 Pure VGA Colors
  2234. 42Fa+
  2235. hdown
  2236. uttondown
  2237. buttonstilldown
  2238. buttondown
  2239. buttonup
  2240. buttondown
  2241. hdown
  2242. buttonstilldown
  2243. hdown
  2244. buttonup
  2245. sdown
  2246. uttondown
  2247. buttonstilldown
  2248. buttondown
  2249. buttonup
  2250. buttondown
  2251. sdown
  2252. buttonstilldown
  2253. sdown
  2254. buttonup
  2255. 42Fa+
  2256. hdown
  2257. uttondown
  2258. buttonstilldown
  2259. buttondown
  2260. buttonup
  2261. buttondown
  2262. hdown
  2263. buttonstilldown
  2264. hdown
  2265. buttonup
  2266. bdown
  2267. uttondown
  2268. buttonstilldown
  2269. buttondown
  2270. buttonup
  2271. buttondown
  2272. bdown
  2273. buttonstilldown
  2274. bdown
  2275. buttonup
  2276. 42Fa+
  2277. hdown
  2278. uttondown
  2279. buttonstilldown
  2280. buttondown
  2281. buttonup
  2282. buttondown
  2283. hdown
  2284. buttonstilldown
  2285. hdown
  2286. buttonup
  2287. gdown
  2288. uttondown
  2289. buttonstilldown
  2290. buttondown
  2291. buttonup
  2292. buttondown
  2293. gdown
  2294. buttonstilldown
  2295. gdown
  2296. buttonup
  2297. 42Fa+
  2298. hdown
  2299. uttondown
  2300. buttonstilldown
  2301. buttondown
  2302. buttonup
  2303. buttondown
  2304. hdown
  2305. buttonstilldown
  2306. hdown
  2307. buttonup
  2308. uttondown
  2309. buttonstilldown
  2310. buttondown
  2311. buttonup
  2312. buttondown
  2313. buttonstilldown
  2314. buttonup
  2315. 42Fa+
  2316. hdown
  2317. uttondown
  2318. buttonstilldown
  2319. buttondown
  2320. buttonup
  2321. buttondown
  2322. hdown
  2323. buttonstilldown
  2324. hdown
  2325. buttonup
  2326. uttondown
  2327. buttonstilldown
  2328. buttondown
  2329. buttonup
  2330. buttondown
  2331. buttonstilldown
  2332. buttonup
  2333. 42Fa+
  2334. hdown
  2335. uttondown
  2336. buttonstilldown
  2337. buttondown
  2338. buttonup
  2339. buttondown
  2340. hdown
  2341. buttonstilldown
  2342. hdown
  2343. buttonup
  2344. uttondown
  2345. buttonstilldown
  2346. buttondown
  2347. buttonup
  2348. buttondown
  2349. buttonstilldown
  2350. buttonup
  2351. 42Fa+
  2352. hdown
  2353. uttondown
  2354. buttonstilldown
  2355. buttondown
  2356. buttonup
  2357. buttondown
  2358. hdown
  2359. buttonstilldown
  2360. hdown
  2361. buttonup
  2362. uttondown
  2363. buttonstilldown
  2364. buttondown
  2365. buttonup
  2366. buttondown
  2367. buttonstilldown
  2368. buttonup
  2369. 42Fa+
  2370. hdown
  2371. uttondown
  2372. buttonstilldown
  2373. buttondown
  2374. buttonup
  2375. buttondown
  2376. hdown
  2377. buttonstilldown
  2378. hdown
  2379. buttonup
  2380. uttondown
  2381. buttonstilldown
  2382. buttondown
  2383. buttonup
  2384. buttondown
  2385. buttonstilldown
  2386. buttonup
  2387. 42Fa+
  2388. hdown
  2389. uttondown
  2390. buttonstilldown
  2391. buttondown
  2392. buttonup
  2393. buttondown
  2394. hdown
  2395. buttonstilldown
  2396. hdown
  2397. buttonup
  2398. uttondown
  2399. buttonstilldown
  2400. buttondown
  2401. buttonup
  2402. buttondown
  2403. buttonstilldown
  2404. buttonup
  2405. 42Fa+
  2406. hdown
  2407. uttondown
  2408. buttonstilldown
  2409. buttondown
  2410. buttonup
  2411. buttondown
  2412. hdown
  2413. buttonstilldown
  2414. hdown
  2415. buttonup
  2416. hdown
  2417. uttondown
  2418. buttonstilldown
  2419. buttondown
  2420. buttonup
  2421. buttondown
  2422. hdown
  2423. buttonstilldown
  2424. hdown
  2425. buttonup
  2426. 42Fa+
  2427. hdown
  2428. uttondown
  2429. buttonstilldown
  2430. buttondown
  2431. buttonup
  2432. buttondown
  2433. hdown
  2434. buttonstilldown
  2435. hdown
  2436. buttonup
  2437. ldown
  2438. uttondown
  2439. buttonstilldown
  2440. buttondown
  2441. buttonup
  2442. buttondown
  2443. ldown
  2444. buttonstilldown
  2445. ldown
  2446. buttonup
  2447. h value
  2448. s value
  2449. l value
  2450. Green
  2451. ColorMetrix
  2452. "Are you sure that 
  2453. want 
  2454. Toolbox?" 
  2455. f"Yes" 
  2456. buttonUp
  2457. buttonUp
  2458. Are you sure that you want to exit Toolbox?
  2459. 4cont, atype, appname
  2460.  toolbook
  2461. c"OK"
  2462. newappname 
  2463. "(Untitled)"
  2464. "No other Toolbook 
  2465. Open another 
  2466. f"OK"
  2467. reqtext 
  2468. apply has changed.
  2469. f"OK" 
  2470. "Cancel"
  2471. "Apply colors 
  2472. & "."
  2473. f"Continue" 
  2474. "Stop"
  2475. & "."
  2476. f"Continuous" 
  2477. "Now" 
  2478. f"All" 
  2479. "Background" 
  2480. "Selection"
  2481. setAppColors
  2482. buttonUp
  2483. buttonUp
  2484. name of this book
  2485. (Untitled)
  2486. No other Toolbook application is open at this time.  Open another Toolbook application to use this command.
  2487. Toolbook application to apply has changed.  The new application is 
  2488. Cancel
  2489. Apply colors to 
  2490. Continue
  2491. Apply colors to 
  2492. Continuous
  2493. Cancel
  2494. cancel
  2495. Continuous
  2496. Apply type?
  2497. Background
  2498. Selection
  2499. [1setAppColors
  2500. reqtext
  2501. newappname
  2502. toolbook
  2503. atype
  2504. appname
  2505. busytext 
  2506. "Busy ignoring clicks..."
  2507. "Status" 
  2508. C&& i
  2509. "status" 
  2510. "Ignored" && eatclicks() && "
  2511. -- Function:    Eatclicks
  2512. -- Purpose:    Cancel pending keyboard 
  2513. mouse messages
  2514. -- Parameters:    None
  2515. -- Returns:    0 
  2516. positive 
  2517. sucessful
  2518.  OnOrOff
  2519.     Local wFlags, dwBytes, cnt, hMsg, LpMsg
  2520.     -- Link 
  2521. windows functions 
  2522. allocates a block 
  2523. memory only
  2524. xdone already.
  2525. 0        -- GlobalAlloc flags.
  2526. 32    -- 
  2527. MSG data structure, 
  2528. froom 
  2529. spare.
  2530.         Linkdll "krnl386.exe"
  2531.             WORD 
  2532. , DWORD)
  2533.             POINTER GlobalLockPointer_ = 
  2534. 9GlobalUnlock(
  2535. NGlobalFree(
  2536. X PeekMsg_ = PeekMessage(
  2537.  = 0 
  2538.     -- Call 
  2539. the unwanted 
  2540.     -- Mouse 
  2541. , 512, 521, 1) <> 0
  2542.     -- Keyboard presses
  2543. , 256, 264, 1) <> 0
  2544.     -- Menu Accelerators
  2545. , 111, 112, 1) <> 0
  2546.     unLinkdll "
  2547. buttonUp
  2548. eatclicks
  2549. buttonUp
  2550. Busy ignoring clicks...
  2551. Status
  2552. status
  2553. Ignored
  2554. eatclicks
  2555. clicks while busy.
  2556. busytext
  2557. eatclicks
  2558. GlobalAlloc
  2559. krnl386.exe
  2560. GlobalAlloc
  2561. GlobalLockPointer_
  2562. GlobalLock
  2563. GlobalUnlock
  2564. GlobalFree
  2565. PeekMsg_
  2566. PeekMessage
  2567. GlobalAlloc
  2568. GlobalLockPointer_
  2569. GlobalFree
  2570. PeekMsg_
  2571. PeekMsg_
  2572. PeekMsg_
  2573. GlobalUnlock
  2574. GlobalFree
  2575. krnl386.exe
  2576. wFlags
  2577. dwBytes
  2578. LpMsg
  2579. OnOrOff
  2580. TOOLBOX_MENU
  2581. PageLook
  2582. TOOLBOX FOR TOOLBOOK
  2583. Redmon Group
  2584. ,Tool:            MenuMaker
  2585. --Programming 
  2586. H:        John 
  2587. --Designs 
  2588. H:            
  2589. Jeffrey S. Howard
  2590. Veronica Cruz
  2591. Daniel Lazenby
  2592. --Last Modified 
  2593. Date 
  2594. :    February 2, 1992
  2595.  acknowledges the Technical Support Staff 
  2596. --Asymetrix 
  2597. some 
  2598. contained 
  2599. --The file "
  2600. .tbk" 
  2601. \BBS provided many 
  2602. --techniques employed.
  2603. 4hMenu
  2604. J"instructions" 
  2605. J"about" 
  2606.     linkDLL user
  2607. gGetMenu(
  2608. gCreateMenu ()
  2609.  DestroyMenu ( 
  2610.  DeleteMenu ( 
  2611. gSetMenu ( 
  2612. gGetSubMenu ( 
  2613.  GetMenuString ( 
  2614.  GetMenuItemCount ( 
  2615. gGetWindowWord ( 
  2616.  AppendMenu ( 
  2617.  DrawMenuBar ( 
  2618. gGetParent ( 
  2619.     translateWindowMessage 
  2620. 4273 
  2621. WM_COMMAND
  2622. 4279 
  2623. WM_INITMENUPOPUP
  2624. "Edit"
  2625. 4 hWnd, msg, wParam
  2626. 4hPopupMenu
  2627. menuSetup
  2628. _, lpLo, lpHi
  2629. \,menustring
  2630. v < 2000
  2631. menuString 
  2632. &), 0 )
  2633. " && 
  2634. 9&& "
  2635. scriptholder"
  2636. stripAmp val
  2637. ~( "&", 
  2638.  ) > 0 )
  2639. ~( "&", 
  2640. 4newMenuCount
  2641. menuScript
  2642. W) > 1
  2643. "Please enter only 1 
  2644. menuscript
  2645. 708,5512 
  2646. 976,5744
  2647. "scriptHolder"
  2648. textLinecount(
  2649. subMenu" & i & ") 
  2650. scriptChk"
  2651. menuSelect
  2652. submenu" & i 
  2653. c" & i 
  2654. fieldtarget
  2655. fieldTarget 
  2656. " & i && "
  2657. " & i && "
  2658. (KeyShift) 
  2659. c" & i 
  2660. c" & z 
  2661. c" & 
  2662. ) <> 
  2663. c" & i 
  2664. " && "
  2665. c" & z && "
  2666.             --
  2667. "menu1"
  2668. leavePage
  2669. WM_COMMAND
  2670. WM_INITMENUPOPUP
  2671. buttonDoubleClick
  2672. menuSelect
  2673. keyDown
  2674. enterPage
  2675. buttonUp
  2676. stripAmp
  2677. enterPage
  2678. instructions
  2679. instructions
  2680. about
  2681. about
  2682. GetMenu
  2683. CreateMenu
  2684. DestroyMenu
  2685. DeleteMenu
  2686. SetMenu
  2687. GetSubMenu
  2688. GetMenuString
  2689. GetMenuItemCount
  2690. GetWindowWord
  2691. AppendMenu
  2692. DrawMenuBar
  2693. GetParent
  2694. WM_COMMAND
  2695. WM_INITMENUPOPUP
  2696. buttonDown
  2697. hMenu
  2698. WM_INITMENUPOPUP
  2699. hPopupMenu
  2700. wParam
  2701. leavePage
  2702. buttonUp
  2703. restore
  2704. menuSetup
  2705. WM_COMMAND
  2706. menuString
  2707.                                                       
  2708. menuString
  2709. menuString
  2710. GetMenuString
  2711. menuString
  2712. to field scriptholder
  2713. hPopupMenu
  2714. menustring
  2715. wParam
  2716. stripAmp
  2717. buttonDoubleClick
  2718. Please enter only 1 word for the menu name.
  2719. menuscript
  2720. menuscript
  2721. scriptHolder
  2722. put textLinecount(text of field subMenu
  2723. ) into t
  2724. put textLine x of text of field subMenu
  2725. into scriptChk
  2726. scriptHolder
  2727. scriptHolder
  2728. scriptHolder
  2729. scriptChk
  2730. x:to1
  2731. menuScript
  2732. newMenuCount
  2733. menuSelect
  2734. field submenu
  2735. field menu
  2736. 0,100,0
  2737. 60,50,100
  2738. field submenu
  2739. fieldTarget
  2740. submenu
  2741. set activated of field SubMenu
  2742. to false
  2743. set activated of field SubMenu
  2744. to true
  2745. i:to1
  2746. fieldtarget
  2747. newMenuCount
  2748. keyDown
  2749. KkeyDown
  2750. field submenu
  2751. field menu
  2752. 0,100,0
  2753. field menu
  2754. 60,50,100
  2755. field menu
  2756. 60,50,100
  2757. field submenu
  2758. field menu
  2759. 0,100,0
  2760. field menu
  2761. into y
  2762. 60,50,100
  2763. menu1
  2764. menu1
  2765. 60,50,100
  2766. menu1
  2767. menu1
  2768. i:to1
  2769. newMenuCount
  2770. buttonUp
  2771. hide field submenu
  2772. newMenuCount
  2773. TOOLBOX FOR TOOLBOOK
  2774. Redmon Group
  2775. ,Tool:            ColorMetrix
  2776. --Programming 
  2777. H:        Jeffrey S. Howard
  2778. --Designs 
  2779. H:            John 
  2780. Veronica Cruz
  2781. Daniel Lazenby
  2782. --Last Modified 
  2783. Date 
  2784. :    February 2, 1992
  2785. 4x1, x2, x3, inc, hinc, linc, ctype
  2786. (x2 - x1) / 256
  2787. (x3 - x1) / 360
  2788. (x3 - x1) / 100
  2789. "test" 
  2790. "colormetrix1"
  2791. setfsbutton
  2792. sethlscolors
  2793. , x1, 
  2794. r, g, b, 
  2795. h, l, s
  2796. ((x - x1) / inc)
  2797. setrbar
  2798. ((x - x1) / 
  2799. setgbar
  2800. ((x - x1) / 
  2801. setbbar
  2802. ((x - x1) / 
  2803. sethbar
  2804. ((x - x1) / 
  2805. setlbar
  2806. ((x - x1) / 
  2807. setsbar
  2808. setrgbbars
  2809. sethlsbars
  2810. , x1, x2, x3, 
  2811. r, g, b, 
  2812. h, l, s
  2813. x < x1
  2814. x > x2
  2815. x > x3
  2816. ((x - x1) / 
  2817. ((x - x1) / 
  2818. ((x - x1) / 
  2819. ((x - x1) / 
  2820. ((x - x1) / 
  2821. ((x - x1) / 
  2822. , rgb, r, g, b
  2823. r & "," & g & "," & b
  2824. , x1, r, g, b, inc
  2825. x1 + (r * 
  2826. barsize 
  2827. "r value"
  2828. setrgbcolors
  2829. "rnum" 
  2830. , x1, r, g, b, 
  2831. x1 + (g * 
  2832. "gnum" 
  2833. , x1, r, g, b, inc
  2834. x1 + (b * 
  2835. "bnum" 
  2836. , x1, h, l, s, 
  2837. x1 + (h * 
  2838. "hnum" 
  2839. , x1, h, l, s, 
  2840. x1 + (l * 
  2841. "lnum" 
  2842. , x1, h, l, s, 
  2843. x1 + (s * 
  2844. "snum" 
  2845. 4x1, 
  2846. r, g, b, h, l, s
  2847. HLStoRGB(h,l,s)
  2848. x1 + (r * 
  2849. x1 + (g * 
  2850. x1 + (b * 
  2851. 4x1, 
  2852. h, l, s, r, g, b
  2853. RGBtoHLS(r,g,b)
  2854. x1 + (h * 
  2855. x1 + (l * 
  2856. x1 + (s * 
  2857. r < 256
  2858. rdown
  2859. r > 0
  2860. g < 256
  2861. gdown
  2862. g > 0
  2863. b < 256
  2864. bdown
  2865. b > 0
  2866. h < 360
  2867. h > 360
  2868. hdown
  2869. h > 0
  2870. h < 0
  2871. l < 100
  2872. H.0625
  2873. l > 100
  2874. ldown
  2875. l > 0
  2876. H.0625
  2877. l < 0
  2878. s < 100
  2879. H.0625
  2880. s > 100
  2881. sdown
  2882. s > 0
  2883. H.0625
  2884. s < 0
  2885. isNum fString
  2886. vTemp 
  2887.         --store 
  2888. --turn 
  2889. off so no error messages
  2890. --initialize
  2891. [            --try a numeric operation on the 
  2892. }        --
  2893. y            --
  2894. 4fs, r, g, b, cont, shls, fhls, bhls
  2895.  g, b)
  2896. "fill"
  2897. "stroke"
  2898. setAppColors
  2899. 4fs, h, l, s, 
  2900. h & "," & l & "," & s
  2901. h,l,s
  2902. h,l,s
  2903. h,l,s
  2904. setoutline
  2905. r, g, b, h, l, s
  2906. setrgbbars
  2907. sethlsbars
  2908. buttonDown
  2909. setrbar
  2910. rdown
  2911. setgbar
  2912. gdown
  2913. enterpage
  2914. bdown
  2915. setbbar
  2916. buttonstilldown
  2917. hdown
  2918. ldown
  2919. sethbar
  2920. setlbar
  2921. sdown
  2922. setsbar
  2923. setrgbcolors
  2924. sethlscolors
  2925. buttonUp
  2926. setoutline
  2927. isNum
  2928. enterpage
  2929. colormetrix1
  2930. colormetrix1
  2931. setfsbutton
  2932. 6sethlscolors
  2933. ctype
  2934. buttonDown
  2935. ?setrbar
  2936. 6setgbar
  2937. 2setbbar
  2938. [7sethbar
  2939. :setlbar
  2940. @setsbar
  2941. setrgbbars
  2942. sethlsbars
  2943. 6sethlscolors
  2944. ctype
  2945. buttonstilldown
  2946. ?setrbar
  2947. 6setgbar
  2948. 2setbbar
  2949. [7sethbar
  2950. :setlbar
  2951. @setsbar
  2952. ctype
  2953. buttonUp
  2954. ctype
  2955. setrbar
  2956. r value
  2957. r value
  2958. S,setrgbcolors
  2959. sethlsbars
  2960. barsize
  2961. ctype
  2962. setgbar
  2963. g value
  2964. g value
  2965. S,setrgbcolors
  2966. sethlsbars
  2967. barsize
  2968. ctype
  2969. setbbar
  2970. b value
  2971. b value
  2972. S,setrgbcolors
  2973. sethlsbars
  2974. barsize
  2975. ctype
  2976. sethbar
  2977. h value
  2978. h value
  2979. 6sethlscolors
  2980. setrgbbars
  2981. barsize
  2982. ctype
  2983. setlbar
  2984. l value
  2985. l value
  2986. 6sethlscolors
  2987. setrgbbars
  2988. barsize
  2989. ctype
  2990. setsbar
  2991. s value
  2992. s value
  2993. 6sethlscolors
  2994. setrgbbars
  2995. barsize
  2996. ctype
  2997. setrgbbars
  2998. HLStoRGB
  2999. r value
  3000. r value
  3001. g value
  3002. g value
  3003. b value
  3004. b value
  3005. barsize
  3006. sethlsbars
  3007. RGBtoHLS
  3008. h value
  3009. h value
  3010. l value
  3011. l value
  3012. s value
  3013. s value
  3014. barsize
  3015. ?setrbar
  3016. ctype
  3017. rdown
  3018. ?setrbar
  3019. ctype
  3020. 6setgbar
  3021. ctype
  3022. gdown
  3023. 6setgbar
  3024. ctype
  3025. 2setbbar
  3026. ctype
  3027. bdown
  3028. 2setbbar
  3029. ctype
  3030. [7sethbar
  3031. ctype
  3032. hdown
  3033. [7sethbar
  3034. ctype
  3035. :setlbar
  3036. ctype
  3037. ldown
  3038. :setlbar
  3039. ctype
  3040. @setsbar
  3041. ctype
  3042. sdown
  3043. @setsbar
  3044. ctype
  3045. isNum
  3046. vTemp
  3047. fString
  3048. setrgbcolors
  3049. RGBtoHLS
  3050. stroke
  3051. [1setAppColors
  3052. sethlscolors
  3053. stroke
  3054. [1setAppColors
  3055. setoutline
  3056. RGBtoHLS
  3057. setrgbbars
  3058. sethlsbars
  3059. 4newMenuCount
  3060. "Are you sure that 
  3061. want 
  3062. create a 
  3063. f"Yes" 
  3064. ("How many 
  3065. L-level 
  3066. would 
  3067. rlike 
  3068. d(Min=3,Max=6)?"
  3069. "Please enter a 
  3070. zbetween 3 
  3071. "This demonstration 
  3072. limited 
  3073. menus.
  3074. H requires 
  3075. )least 3 
  3076. choose a 
  3077. --drawing initial main 
  3078. 189,1584 
  3079. 1401,1872
  3080. "Menu1"
  3081. 72, 0, 0
  3082. fieldType 
  3083. singleLineWrap
  3084. MenuSelect;
  3085. H1212,0
  3086. " & i
  3087. submenus
  3088. 192,1872 
  3089. 3828,3840
  3090. "SubMenu1"
  3091. 144, 0, 0
  3092. H1212,0
  3093. P" & i
  3094. "menu1" 
  3095. buttonUp
  3096. buttonUp
  3097. Are you sure that you want to create a new menu?
  3098. How many top-level menu items would you like to create (Min=3,Max=6)?
  3099. Please enter a number between 3 and 6.
  3100. buttonUp
  3101. restore
  3102. This demonstration is limited to 6 top-level menus.  Please try again.
  3103. This demonstration requires at least 3 top-level menus.  Please try again.
  3104. Please choose a number between 3 and 6.
  3105. Menu1
  3106. to handle buttonUp;send MenuSelect;end
  3107. paste
  3108. SubMenu1
  3109. paste
  3110. SubMenu
  3111. menu1
  3112. menu1
  3113. menu1
  3114. 60,50,100
  3115. newMenuCount
  3116. TOOLBOX FOR TOOLBOOK
  3117. Redmon Group
  3118. ,Tool:            Animator
  3119. --Programming 
  3120. H:        Jeffrey S. Howard
  3121. John 
  3122. --Designs 
  3123. H:            
  3124. Veronica Cruz
  3125. Daniel Lazenby
  3126. --Last Modified 
  3127. Date 
  3128. :    February 2, 1992
  3129. 4flag, travel
  3130. sysDrawDirect 
  3131. J"instructions" 
  3132. J"about" 
  3133. syslineStyle 
  3134. , mpos
  3135. newpos 
  3136.  & "," & 
  3137.  & "," & 
  3138. , obj, 
  3139. startbnds 
  3140. xoff 
  3141. yoff 
  3142. moves 
  3143. ci <= 
  3144. newx 
  3145. newy 
  3146. "Please 
  3147. 210,50,100
  3148. 300,50.1875,50.375
  3149. 180,37.625,100
  3150. ePage
  3151. enterPage
  3152. buttonDown
  3153. buttonStillDown
  3154. leavePage
  3155. buttonUp
  3156. enterPage
  3157. clear
  3158. instructions
  3159. instructions
  3160. about
  3161. about
  3162. travel
  3163. leavePage
  3164. buttonDown
  3165. newpos
  3166. travel
  3167. buttonStillDown
  3168. newpos
  3169. travel
  3170. buttonUp
  3171. object
  3172. clear
  3173. enterPage
  3174. object 1
  3175. 60,50,100
  3176. object 2
  3177. 60,50,100
  3178. object 3
  3179. 60,50,100
  3180. Please select an object.
  3181. object 1
  3182. object 2
  3183. object 3
  3184. enterPage
  3185. moves
  3186. startbnds
  3187. travel
  3188. TOOLBOX FOR TOOLBOOK
  3189. fD|D|
  3190. System
  3191. System
  3192. ?gD|D|
  3193.  sans serif
  3194. ?gD|D|
  3195. System
  3196. ?gD|D|
  3197. QopAsnEsp
  3198. System
  3199. ?gD|D|
  3200. System
  3201. ?gD|D|
  3202.  sans serif
  3203. @    p     sans serif
  3204.      sans serif
  3205.      sans serif
  3206. @     sans serif
  3207.  sans serif
  3208.  sans serif
  3209.  sans serif
  3210. p     sans serif
  3211.  sans serif
  3212.  sans serif
  3213.  sans serif
  3214.  sans serif
  3215.  sans serif
  3216.  sans serif
  3217.  sans serif
  3218.  sans serif
  3219.  sans serif
  3220. UgD|D|
  3221. enterPage
  3222. reader
  3223. hideMenu
  3224. printerSetup
  3225. printPages
  3226. printReport
  3227. import
  3228. export
  3229. saveAs
  3230. &Toolbox Help
  3231. Animator
  3232. Toolbox Help
  3233. Colormetrix
  3234. Toolbox Help
  3235. Menu Generator
  3236. Toolbox Help
  3237. PageLook
  3238. Toolbox Help
  3239. Ramper
  3240. Toolbox Help
  3241. Timer
  3242. Toolbox Help
  3243. Win Ini
  3244. Toolbox Help
  3245. WrapTextCounter
  3246. Toolbox Help
  3247. keyDown
  3248. author
  3249. TOOLBOX_MENU
  3250. About
  3251.     --Move linkDLL statement 
  3252. handler
  3253. "tbkdlg.dll"
  3254. dialog(
  3255. setValue(
  3256. getValue(
  3257. init 
  3258. dlgInit 
  3259.     --The 
  3260. I function 
  3261. used 
  3262. the initial value
  3263.  box control.
  3264. ) returns 
  3265. 8modified initialization 
  3266. there was 
  3267. error.
  3268. ) requires three parameters:
  3269. A reference 
  3270.  whose 
  3271.  should be changed
  3272. (e.g. "
  3273. Name" 
  3274. "listbox Files")
  3275. ,"","")
  3276.  occurred."
  3277.     --A 
  3278. displayed 
  3279. Hcalling 
  3280. similar 
  3281.     --that describes 
  3282. final values 
  3283. each 
  3284. user defined property 
  3285.  box.
  3286. retValue 
  3287. dlgBox 
  3288. retreive 
  3289. a specified 
  3290. returned 
  3291. retreived
  3292. , "")
  3293. buttonUp
  3294. buttonUp
  3295. tbkdlg.dll
  3296. dialog
  3297. setValue
  3298. getValue
  3299. dlgInit
  3300. dlgBox
  3301. dialog
  3302. retValue
  3303. dlgBox
  3304. 524480,3,30,20,159,114,,,About TOOLBOX for TOOLBOOK,8,Helv,,20.53,10.67,121.33,76.39,15,1342177281,130,REDMON GROUP
  3305. 4201 South 31st Street,0,,46.67,81.03,69.07,16.08,17,1342242816,128,OK,0,,11.20,4.64,18.29,19.69,24,1342177283,130,comment,0
  3306. dlgInit
  3307. ,s15,REDMON GROUP
  3308. 4201 South 31st Street, Suite 929
  3309. Arlington, Virginia 22206
  3310. (703) 845-9266
  3311. Proprietary Information 
  3312. Copyright (Work in Process)
  3313. ,b17,FALSE
  3314. ,h24,
  3315. ctrlID
  3316. About Button
  3317. 4menuVisit
  3318. "ToolBox 
  3319. ToolBook 
  3320. home grown utilities developed"&&\
  3321. copyrighted 
  3322. Hthe Redmon Group. It 
  3323. being made available"&&\
  3324. %freeware 
  3325. assist 
  3326. developers 
  3327.  "&&\
  3328.             "development. This 
  3329. released 
  3330. basis."&&\
  3331.             "You may include these 
  3332. portions 
  3333. applications you 
  3334. developing, providing 
  3335.             "identify 
  3336. Asymetrix(
  3337. cases 
  3338. MenuMaker 
  3339. EatClicks) 
  3340. source 
  3341. scripts 
  3342.             "use.
  3343. share, 
  3344. )no cost, copies 
  3345. f"&&\
  3346.             "other 
  3347. enterPage
  3348. enterPage
  3349. ToolBox for ToolBook is a set of home grown utilities developed
  3350. and copyrighted by the Redmon Group. It is being made available
  3351. as freeware to assist ToolBook developers with application
  3352. development. This application is released in an as is basis.
  3353. You may include these utilities, or portions of these
  3354. utilities, in applications you are developing, providing you
  3355. identify the Redmon Group or Asymetrix(in the cases of MenuMaker and EatClicks) as the source of any scripts you may
  3356. use.  You may share, at no cost, copies of these utilities with
  3357. other developers.
  3358. menuVisit
  3359. ">"($h(h(
  3360. buttonUP
  3361. about
  3362. buttonUP
  3363. buttonUP
  3364. about
  3365. "eatClicks"
  3366. buttonUp
  3367. buttonUp
  3368. eatClicks
  3369. "Are you sure 
  3370. want 
  3371. close Toolbox 
  3372. Toolbook?" 
  3373. f"Yes" 
  3374. "yes"
  3375. buttonUp
  3376. buttonUp
  3377. Are you sure you want to close Toolbox for Toolbook?
  3378. buttonUp
  3379. buttonUp
  3380. animator
  3381. buttonUp
  3382. buttonUp
  3383. ianimator
  3384. colormetrix
  3385. buttonUp
  3386. buttonUp
  3387. colormetrix
  3388. timer
  3389. buttonUp
  3390. buttonUp
  3391. timer
  3392. pageLook
  3393. buttonUp
  3394. buttonUp
  3395. apageLook
  3396. wrapTextCounter
  3397. buttonUp
  3398. buttonUp
  3399. wrapTextCounter
  3400. "menuMaker"
  3401. buttonUp
  3402. buttonUp
  3403. menuMaker
  3404. "eatClicks"
  3405. buttonUp
  3406. buttonUp
  3407. eatClicks
  3408. EATCLICKS
  3409. "Are you sure 
  3410. want 
  3411. close Toolbox 
  3412. Toolbook?" 
  3413. f"Yes" 
  3414. "yes"
  3415. buttonUp
  3416. buttonUp
  3417. Are you sure you want to close Toolbox for Toolbook?
  3418. Close
  3419. timer
  3420. buttonUp
  3421. buttonUp
  3422. timer
  3423. Timer
  3424. pageLook
  3425. buttonUp
  3426. buttonUp
  3427. apageLook
  3428. PageLook
  3429. wrapTextCounter
  3430. buttonUp
  3431. buttonUp
  3432. wrapTextCounter
  3433. Counter
  3434. TEXT LINE 
  3435. about
  3436. buttonUp
  3437. buttonUp
  3438. about
  3439. About 
  3440. "menuMaker"
  3441. buttonUp
  3442. buttonUp
  3443. menuMaker
  3444.  MenuMakerrratorrr
  3445. colormetrix
  3446. buttonUp
  3447. buttonUp
  3448. colormetrix
  3449. ColorMetrixx
  3450. buttonUp
  3451. buttonUp
  3452. animator
  3453. buttonUp
  3454. buttonUp
  3455. ianimator
  3456. Animator
  3457. (:PHYSSIZE
  3458. Close
  3459. Main Menu
  3460. buttonUp
  3461. buttonUp
  3462. "Are you sure that 
  3463. want 
  3464. Toolbox?" 
  3465. f"Yes" 
  3466. buttonUp
  3467. buttonUp
  3468. Are you sure that you want to exit Toolbox?
  3469. About
  3470. scrolled
  3471. false
  3472. Instructions
  3473. scrolled
  3474. "    :PHYSSIZE
  3475. Animator
  3476. Using a record function, Animator lets you select an object and then use the mouse to trace out the path an object is to follow.  Animator records the path that is drawn and the speed at which the path is drawn.
  3477. This utility automates the ToolBook Recorder by allowing the developer to record Mouse movements instead of Mouse clicks.  This utility also illustrates the exact path that was recorded.
  3478. 1)  Click RECORD to begin.
  3479. 2)  Click one of the three objects on the right of the screen.
  3480. 3)  Hold down the left Mouse Button and draw a path on the screen.
  3481. object 2
  3482. 4choice
  3483. buttonDown
  3484. buttonDown
  3485. choice
  3486. object 1
  3487. 4Choice
  3488. buttonDown
  3489. buttonDown
  3490. Choice
  3491. object 3
  3492. 4choice
  3493. buttonDown
  3494. buttonDown
  3495. choice
  3496. ButtonUp
  3497. 4flag
  3498. ButtonUp
  3499. ButtonUp
  3500. RECORD
  3501. Animator
  3502. PageLook
  3503. PageLook is used to examine or modify the properties and scripts of objects on a page.  With PageLook, you can access individual objects, individual objects within a group, as well as groups of individual objects nested several levels into another group without ungrouping.      Pressing the PageLook button produces a list box containing every object on a page's foreground.  Much like structured programming, indentation is used to illustrate the nested relationship between objects and groups of nested objects.  In this example, objects in the group "Greece" are nested three levels into the group "Europe". 
  3504. What makes this utility so valuable is that it quickly draws itself on the page.  The script that is contained in this page can be pasted into the developer's application.  The developer can then create a button or menu item to call the PageLook script.ould only require the script contained in this page's script..
  3505. 1)  Click the "European Tour" button at the bottom of the screen.
  3506. 2)  Select an object from the scrollable field to the left.
  3507. 3)  Click the "Properties" button to display the properties for the selected object.  Click the "Return" button to return to the list of objects.
  3508. 4)  Click the "Script" button to view and/or edit the object's script.
  3509. 5)  Click the "Close" button to close PageLook..
  3510. Globe
  3511. buttonUp
  3512. buttonUp
  3513. Europe
  3514. Luxembourg
  3515. buttonUp
  3516. buttonUp
  3517. EasternEurope
  3518. buttonUp
  3519. buttonUp
  3520. Poland
  3521. buttonUp
  3522. buttonUp
  3523. Czechoslavakia
  3524. buttonUp
  3525. buttonUp
  3526. Hungary
  3527. buttonUp
  3528. buttonUp
  3529. buttonUp
  3530. buttonUp
  3531. modTarg
  3532. false
  3533. Belgium
  3534. buttonUp
  3535. buttonUp
  3536. modTarg
  3537. New Belgium
  3538. buttonUp
  3539. buttonUp
  3540. Corsica
  3541. buttonUp
  3542. buttonUp
  3543. Sardinia
  3544. buttonUp
  3545. buttonUp
  3546. Sicily
  3547. buttonUp
  3548. buttonUp
  3549. Balkans
  3550. buttonUp
  3551. buttonUp
  3552. Yugoslavia
  3553. buttonUp
  3554. buttonUp
  3555. Albania
  3556. buttonUp
  3557. buttonUp
  3558. Rumania
  3559. buttonUp
  3560. buttonUp
  3561. Bulgaria
  3562. buttonUp
  3563. buttonUp
  3564. Greece
  3565. buttonUp
  3566. buttonUp
  3567. GreeceMainland
  3568. buttonUp
  3569. buttonUp
  3570. Crete
  3571. buttonUp
  3572. buttonUp
  3573. buttonUp
  3574. buttonUp
  3575. Scandinavia
  3576. buttonUp
  3577. buttonUp
  3578. Norway
  3579. buttonUp
  3580. buttonUp
  3581. Finland
  3582. buttonUp
  3583. buttonUp
  3584. Sweden
  3585. buttonUp
  3586. buttonUp
  3587. Denmark
  3588. buttonUp
  3589. buttonUp
  3590. NoName
  3591. buttonUp
  3592. buttonUp
  3593. buttonUp
  3594. buttonUp
  3595. `,7$L
  3596. WesternEurope
  3597. buttonUp
  3598. buttonUp
  3599. Iceland
  3600. buttonUp
  3601. buttonUp
  3602. Netherlands
  3603. buttonUp
  3604. buttonUp
  3605. Switzerland
  3606. buttonUp
  3607. buttonUp
  3608. France
  3609. buttonUp
  3610. buttonUp
  3611. Spain
  3612. buttonUp
  3613. buttonUp
  3614. Portugal
  3615. buttonUp
  3616. buttonUp
  3617. Italy
  3618. buttonUp
  3619. buttonUp
  3620. H6L!w
  3621. buttonUp
  3622. buttonUp
  3623. GreatBritain
  3624. buttonUp
  3625. buttonUp
  3626. N.Ireland
  3627. buttonUp
  3628. buttonUp
  3629. Irleand
  3630. buttonUp
  3631. buttonUp
  3632. Germany
  3633. buttonUp
  3634. buttonUp
  3635. pageLook
  3636. pageLook
  3637. buttonUp
  3638. buttonUp
  3639. apageLook
  3640. European Tour
  3641. buttonUp
  3642. buttonUp
  3643. buttonUp
  3644. buttonUp
  3645. PageLook
  3646. buttonUp
  3647. buttonUp
  3648. buttonUp
  3649. buttonUp
  3650. buttonUp
  3651. buttonUp
  3652. buttonUp
  3653. buttonUp
  3654. buttonUp
  3655. buttonUp
  3656. buttonUp
  3657. buttonUp
  3658. buttonUp
  3659. buttonUp
  3660. buttonUp
  3661. buttonUp
  3662. buttonUp
  3663. buttonUp
  3664. buttonUp
  3665. buttonUp
  3666. buttonUp
  3667. buttonUp
  3668. buttonUp
  3669. buttonUp
  3670. buttonUp
  3671. buttonUp
  3672. buttonUp
  3673. buttonUp
  3674. buttonUp
  3675. buttonUp
  3676. buttonUp
  3677. buttonUp
  3678. Timer
  3679. 8n8n8n8k
  3680. Timer was developed to monitor and verify the speed at which scripts execute in thousandths of seconds.  By incorporating these timers into scripts a developer is better able to identify areas in the code that can be tightened.  It is also useful for comparing the execution time of different coding techniques.ing techniques of coding.
  3681. 1)  Click either of the "Start Timer" buttons below.
  3682. 2)  Click the "Stop Timer" button to stop the timer.
  3683. time1
  3684. 4t1, tflag1
  3685. "timerstart1"
  3686. "timerend1"
  3687. B"time1" 
  3688. "Stop Timer #1"
  3689. "starttime1" 
  3690. "stoptime1" 
  3691. gettime1
  3692. t1 & " 
  3693. tsec 
  3694. Q(t1)
  3695. tfracs 
  3696. t1 - 
  3697. %"#.000"
  3698. thrs 
  3699. :/3600)
  3700. * 3600)
  3701. tmin 
  3702. e/60)
  3703. * 60)
  3704. Y& ":" & 
  3705. 8& ":" & 
  3706. "Start 
  3707. buttonUp
  3708. rightbuttonup
  3709. buttonUp
  3710. timerstart1
  3711. timerend1
  3712. time1
  3713. Stop Timer #1
  3714. starttime1
  3715. stoptime1
  3716. starttime1
  3717. Egettime1
  3718. stoptime1
  3719. timerstart1
  3720.  seconds
  3721. #.000
  3722. timerend1
  3723. time1
  3724. Start Timer #1
  3725. tfracs
  3726. tflag1
  3727. rightbuttonup
  3728. label
  3729. Start Time
  3730. Start Time
  3731. time2
  3732. 4t2, tflag2
  3733. "timerstart2"
  3734. "timerend2"
  3735. B"time2" 
  3736. "Stop Timer #2"
  3737. "starttime2" 
  3738. "stoptime2" 
  3739. gettime2
  3740. t2 & " 
  3741. tsec 
  3742. Q(t2)
  3743. tfracs 
  3744. t2 - 
  3745. %"#.000"
  3746. thrs 
  3747. :/3600)
  3748. * 3600)
  3749. tmin 
  3750. e/60)
  3751. * 60)
  3752. Y& ":" & 
  3753. 8& ":" & 
  3754. "Start 
  3755. buttonUp
  3756. rightbuttonup
  3757. buttonUp
  3758. timerstart2
  3759. timerend2
  3760. time2
  3761. Stop Timer #2
  3762. starttime2
  3763. stoptime2
  3764. starttime2
  3765. Egettime2
  3766. stoptime2
  3767. timerstart2
  3768.  seconds
  3769. #.000
  3770. timerend2
  3771. time2
  3772. Start Timer #2
  3773. tfracs
  3774. tflag2
  3775. rightbuttonup
  3776. label
  3777. Start Time
  3778. Start Time
  3779. Start time
  3780. Stop timee
  3781. Seconds
  3782. timerstart1
  3783. timerend1
  3784. startTime1
  3785. StopTime1
  3786. Hrs : Mins : Secsssssssss
  3787. Start time
  3788. Stop timee
  3789. Seconds
  3790. Hrs : Mins : Secsssssssss
  3791. timerstart2
  3792. timerend2
  3793. startTime2
  3794. StopTime2
  3795. Timer
  3796. currtime
  3797. 1:22:41 PMM
  3798. Eatclicks
  3799. TOOLBOX FOR TOOLBOOK
  3800. Redmon Group
  3801. ,Tool:            EatClicks
  3802. --Original Programming 
  3803. H:    Claude Osteen 
  3804. Asymetrix
  3805. --Modified 
  3806. Jeffrey S. Howard
  3807. --Designs 
  3808. H:            John 
  3809. Veronica Cruz
  3810. Daniel Lazenby
  3811. --Last 
  3812. Date 
  3813. :    October 22, 1992
  3814.  acknowledges the Technical Support Staff 
  3815. some 
  3816. contained 
  3817. --The original eatClicks developed 
  3818. --was modified 
  3819. work 
  3820. fWindows 3.1 
  3821. "This 
  3822.  only works 
  3823. 386-Enhanced Mode.
  3824. most 
  3825. "status" 
  3826. "status2" 
  3827. enterPage
  3828. enterPage
  3829. This EatClicks only works in 386-Enhanced Mode.  Redmon Group acknowledges the Technical Support Staff at Asymetrix for most of the script contained in EatClicks.  The original eatClicks developed by Claude Ostyn was modified to work with Windows 3.1.
  3830. status
  3831. status2
  3832. This EatClicks code disables buttons after a user has selected one.  This is a constant problem in ToolBook.  This code has been written to support both Windows 3.1 and Windows 3.0 with Multimedia Extensions.
  3833. 1)  Click the Eat Clicks Button below;
  3834. 2)  Continuously click the Test Button below;
  3835. 3)  The status field will display how many clicks were ignored.
  3836. Eat Clicks Direct
  3837. Test button.  Click while ignoring and see if it moves.
  3838. status
  3839. status2
  3840. MenuMaker
  3841. 4F?hDhDhDhDhDhDhDhDhDhDhDhDhDhDhD
  3842. The MenuMaker provides a means of visually  laying out top-level menu items, sub-items of a top-level menu, and cascading-sub-items of a top-level menu item.  Sub-items and cascading-sub-items are automatically placed into their own drop-down menu box.  Using the MenuMaker, you can define menu commands, pop-up menus, and separators, and you can move, copy, or delete any part of the menu.  The MenuMaker also allows you to immmediately test your menus.  Your menu is displayed at the top of this development window when you press the "View Menu" button.  
  3843. Clicking on the "Save Menu" button produces a floppy disk icon  which contains the necessary scripts and handlers for the menus.  This icon is then pasted into the developer's application.  To incorporate the new menu, the developer follows the directions included in the script of the floppy disk icon .......
  3844. 1)  Click the "Create" button and enter the desired number of top-level menu items.
  3845. 2)  Enter the top-level menu name at the cursor.  Use the TAB key to enter the remaining top-level menu names.
  3846. 3)  To enter menu items, select the "SubMenus" radio button and click on the desired top-level menu name.
  3847. 4)  Enter a menu item name at the cursor and press the ENTER key.  Repeat this process for each additional menu item.
  3848. 5)  Place an "&" before the letter you wish to have underlined.
  3849. 6)  Leaving a blank line creates a separator bar.
  3850. 7)  Pressing the TAB key before a menu item name creates a first level cascading menu.  Pressing the TAB key twice creates a second level cascading menu, etc. 
  3851.  8)  You may add script handlers to the menu items by selecting the "Scripts" radio button and double-clicking on the desired menu item.
  3852. 9)  Click the "View Menu" button to display the menu you constructed.
  3853. 10) Click the "Save Menu" to save the menu you constructed.  
  3854. 11) A Floppy Disk icon containing the menu scripts will appear on the screen.  Paste this icon into your application to move the necessary menu scripts.  Follow the directions included in the script of the floppy disk icon to incorporate the new menu...... the developer      e developer                         
  3855. menubar
  3856.  MenuBar \
  3857. Button
  3858. Button
  3859. editmode
  3860. --Script Handlers
  3861. buttonDown
  3862. buttonDown
  3863. 4newMenuCount
  3864. c" & i && "
  3865. c" & i 
  3866. c" & i && "
  3867. SubMenu" & i && "
  3868. subMenu" & i
  3869. fieldType 
  3870. noWrap"
  3871. buttonUp
  3872. buttonUp
  3873. put field menu
  3874. into z
  3875. 60,50,100
  3876. field menu
  3877. 0,100,0
  3878. set activated of field menu
  3879. to false
  3880. set activated of field SubMenu
  3881. to false
  3882. hide field subMenu
  3883. set fieldType of field SubMenu
  3884. to noWrap
  3885. newMenuCount
  3886. Menus
  3887. Scripts
  3888. 4newMenuCount
  3889. c" & i && "
  3890. SubMenu" & i && "
  3891. fieldType 
  3892. singleSelect"
  3893. buttonUp
  3894. buttonUp
  3895. set activated of field menu
  3896. to true
  3897. set activated of field SubMenu
  3898. to true
  3899. set fieldType of field SubMenu
  3900. to singleSelect
  3901. newMenuCount
  3902. Scripts
  3903. Submenu
  3904. 4newMenuCount
  3905. c" & i && "
  3906. submenu" & i && "
  3907. c" & i && "
  3908. SubMenu" & i && "
  3909. fieldType 
  3910. noWrap"
  3911. buttonUp
  3912. buttonUp
  3913. put field menu
  3914. into z
  3915. 60,50,100
  3916. put field submenu
  3917. into x
  3918. set activated of field menu
  3919. to true
  3920. set activated of field SubMenu
  3921. to false
  3922. set fieldType of field SubMenu
  3923. to noWrap
  3924. newMenuCount
  3925. SubMenus
  3926. menulist
  3927. Create
  3928. Create
  3929. Restore
  3930. 4newMenuCount
  3931. "menuList" 
  3932. submenu" & i
  3933. c" & i
  3934. c" & i
  3935. "floppy"
  3936. buttonUp
  3937. buttonUp
  3938. menuList
  3939. show field submenu
  3940. clear field submenu
  3941. show field menu
  3942. clear field menu
  3943. floppy
  3944. buttonDown
  3945. newMenuCount
  3946. Restore
  3947. Save Menu
  3948. View Menu
  3949. MenuMaker
  3950.  MenuBar \
  3951. |&`    {
  3952. Button
  3953. Button
  3954.  MenuBar \
  3955. H,o    |
  3956. p,`    m
  3957. Button
  3958. Button
  3959.  MenuBar \
  3960. Button
  3961. Button
  3962. scriptholder
  3963. search
  3964. character
  3965. search
  3966. to handle char
  3967.     send character
  3968. to handle search
  3969.     request "Hi"
  3970. enddddd
  3971. WrapCounter
  3972. TOOLBOX FOR TOOLBOOK
  3973. Redmon Group
  3974. ,Tool:            WrapCounter
  3975. --Programming 
  3976. H:        Jeffrey S. Howard
  3977. --Designs 
  3978. H:            John 
  3979. Veronica Cruz
  3980. Daniel Lazenby
  3981. --Last Modified 
  3982. Date 
  3983. :    February 2, 1992
  3984. starttime
  3985. Xuser
  3986. GetTickCount()
  3987. stoptime
  3988. newt 
  3989. (t / 10)
  3990. t / 100
  3991. %"#.00"
  3992. J"instructions" 
  3993. J"about" 
  3994. arttime
  3995. stoptime
  3996. starttime
  3997. enterPage
  3998. starttime
  3999. GetTickCount
  4000. GetTickCount
  4001. stoptime
  4002. GetTickCount
  4003. enterPage
  4004. instructions
  4005. instructions
  4006. about
  4007. about
  4008. /(0P0
  4009. This utility produces a real textline count rather than the number of text lines ending with a <CR> carriage return.  ToolBook recognizes a line of text when it encounters a <CR>.  In a narrow field that one line of text could wrap several times and still be considered one line of text.  We have incorporated three of the many techniques one can use to count real textlines.
  4010. This utility can be used to automatically resize a field to fit the actual lines of text.  
  4011. 1)  Click on one of the "Method" buttons below to display the ToolBook textline count and the real number of textlines in the field.
  4012. 2)  Use the author mode to resize the width of the sample text field.  This will change the number of displayed textlines.  Click on one of the "Method" buttons to see how the count changes.
  4013. counter
  4014. TEXT LINE 
  4015. time1
  4016. 1.54 secondsss
  4017. time2
  4018. 1.70 secondss
  4019. 4t, s
  4020. "tlc" 
  4021. "tld" 
  4022. "counter"
  4023. "test"
  4024. starttime
  4025. countlines1
  4026. stoptime
  4027. "time1" 
  4028. t & " 
  4029. done 
  4030. tonUp
  4031. countlines1
  4032. buttonUp
  4033. rightbuttonup
  4034. buttonUp
  4035. counter
  4036. counter
  4037. counter
  4038. starttime
  4039. countlines1
  4040. stoptime
  4041. time1
  4042.  seconds
  4043. countlines1
  4044. counter
  4045. counter
  4046. counter
  4047. counter
  4048. rightbuttonup
  4049. Method 1
  4050. "tlc" 
  4051. "tld" 
  4052. "counter"
  4053. "test")
  4054. starttime
  4055. countlines2
  4056. stoptime
  4057. "time2" 
  4058. t & " 
  4059. bsave 
  4060. bnew 
  4061. (+ 300)
  4062. done 
  4063. tonUp
  4064. countlines2
  4065. buttonUp
  4066. rightbuttonup
  4067. buttonUp
  4068. counter
  4069. counter
  4070. counter
  4071. starttime
  4072. countlines2
  4073. stoptime
  4074. time2
  4075.  seconds
  4076. countlines2
  4077. bsave
  4078. rightbuttonup
  4079. Method 2
  4080. "tlc" 
  4081. "tld" 
  4082. "counter"
  4083. "test")
  4084. starttime
  4085. countlines3
  4086. stoptime
  4087. "time3" 
  4088. t & " 
  4089. done 
  4090. tpos 
  4091. A(p) 
  4092. tonUp
  4093. countlines3
  4094. buttonUp
  4095. rightbuttonup
  4096. buttonUp
  4097. counter
  4098. starttime
  4099. countlines3
  4100. stoptime
  4101. time3
  4102.  seconds
  4103. countlines3
  4104. textfrompoint
  4105. rightbuttonup
  4106. Method 3
  4107. Method
  4108. time3
  4109. 3.74 secondss
  4110. ToolBook's Textline Count
  4111. Real Number of Textlines
  4112. PRINTERS
  4113. Basic Concepts
  4114. Printers differ in their abilities to use fonts, graphics, spacing, alignment, and character formats. The appearance of your printed document can vary greatly from printer to printer. The way your document looks depends on which formats you assign and which formats your printer can print.
  4115. Printer Drivers
  4116. Word uses printer drivers as the link between Word and your printer. Printer drivers are included with Windows and have a .DRV filename extension.  A printer driver contains important information that Windows needs to know about your printer, such as details about printer hardware configuration and the printing interface, descriptions of fonts, definitions of character widths, and control sequences used by the printer to achieve various formats.  If Windows has a printer driver for your printer, you probably installed it when you ran the Windows Setup program. If you want to add an additional printer driver once you've installed Windows, you can use the Control Panel to install it. After you install your printers, you must also configure each one before you can print with Word. See your Windows documentation for more information.
  4117. If Windows does not have a printer driver for your printer, you may still be able to print documents 
  4118. with Word, but your printer may not be able to take advantage of every Word formatting option.
  4119. What You See Word provides several ways for you to look at your document before you print it. To see indents, tabs, and line breaks as they will appear when printed, choose the Options command from the Tools menu, select the View category, and then select the Line Breaks And Fonts As Printed check box. To see a page as it will appear when printed, including headers, footers, footnotes, and graphics, choose the Page Layout command from the View menu. To see one or two full pages as they will appear when printed, choose the Print Preview command from the File menu. For more information about how to view your document before you print, see Chapter 24, "Viewing Documents," in the Microsoft Word User's Guide.  Choose the Draft command from the View menu for the fastest document scrolling speed. You will see only the Word 10-point system font on the screen. Character formats such as bold and italic appear as underlining, and graphics and other elements are not displayed.
  4120. About Printers
  4121. This section explains terms and concepts that are discussed later in this file; it does not give details 
  4122. about your particular printer. It describes the parts of the printer interface-the way a computer and 
  4123. printer exchange information-that are important when you use Word.  You need to know whether your printer uses a parallel interface, a serial interface, or can use either one.  Terminology can be confusing. "Parallel" and "Centronics" are the same type of interface. If your printer uses a parallel interface, it sends multiple bits of information to the printer simultaneously.  "Serial," "asynchronous," and "RS232" all refer to the same type of interface. If your printer uses a serial interface, it sends single bits of information to the printer, one at a time.
  4124. Ports
  4125. LPT1, LPT2, LPT3, COM1, and COM2 are input/output ports. The computer uses them to connect with printers and other devices.
  4126.     *  You connect a parallel printer to LPT1, LPT2, or LPT3. These are parallel printer ports.
  4127.     *  You connect a serial printer to COM1 or COM2. These are serial communications ports.
  4128. Cables
  4129. All parallel cables are the same. Serial cables usually differ from one another; they are often made for a particular printer.  Use the cable that came with your printer or purchase one from your printer dealer. If you are not sure what kind of cable your printer requires, ask your printer dealer or check your printer manual.
  4130. Printer Configuration Switches
  4131. Many printers have a set of configuration (DIP) switches. Generally, Word expects these switches to 
  4132. be set in the factory default settings. If a printer is an exception to this rule, it is noted in the printer 
  4133. driver's Help file.  Many printers have switches for doing automatic line feeds when receiving a carriage return. These switches should be set to carriage returns only, which is normally the factory default setting.  Some printers have switches or control panels that enable you to set the printer for different modes, such as draft, letter quality, or compressed text. Do not use these controls with Word. If you do use them, you may cause your document to be printed incorrectly. Word almost always expects a printer to be in draft mode, printing 10 characters per inch. Exceptions to this rule are noted in the Help files for individual printer drivers.  If you have a serial printer, you need to set the correct port, baud rate, word length, parity, handshake, and stop bits. If the baud rate or parity is incorrect, the printer may not print or the output may be garbled. In the Control Panel, use the Ports command on the Settings menu to set these parameters.
  4134. Handshake
  4135. If you have a serial printer, make sure you are using the right handshake, or protocol. The handshake is the hardware and software settings that allow your computer to communicate with a connected printer or other device. If the handshake is not correct, the printer may print, but it will lose text. Check your printer manual for the correct settings.
  4136. Preparing to Print
  4137. The more you know about your printer, the less trouble you're likely to have printing. For example, differences in how paper is fed to the printer can cause variations in the top and bottom margins. For information about your printer, read your printer manual thoroughly.  There are three steps in preparing to print:
  4138.     *    Connect the printer to the computer.
  4139.     *    Install the printer driver.
  4140.     *    Configure the printer.
  4141. These steps are explained in the following sections.
  4142. Connecting a Printer
  4143.     *    Make sure you have the correct cable for your printer, especially if you are using a         serial printer.
  4144.     *    Connect your printer to your computer and configure the printer
  4145. s switches and mode         settings according to the printer manufacturer
  4146. s instructions.
  4147.     *    If your printer is connected to a serial port, and you have already installed Word, use         the Ports command on the Settings menu in the Control Panel to set the port, baud         rate, word length, parity, stop bits, and handshake for your printer.
  4148.     *    Try printing something in Word:
  4149.         1    Open a file or type a few lines of text.
  4150.         2    From the File menu, choose Print (ALT, F, P).
  4151.         3    Choose the OK button.
  4152. If your printer does not print properly, make sure that the cables are connected correctly and that the printer is in online mode. Check your communications settings if you have a serial printer. If the 
  4153. printer still fails to print, repeat the connection instructions in your printer documentation or contact 
  4154. your printer manufacturer. For more information on printing problems, see your Windows 
  4155. documentation.
  4156. Installing a Printer Driver
  4157. Installing printer drivers is a function of the Windows operating system. The procedures for 
  4158. installing additional printers differ if you are connected to a local area network (LAN), or if you're 
  4159. using a standalone machine.  If you are connected to a LAN, installing printers may be a task for the system administrator.  If you are not connected to a LAN, use the Control Panel to install a printer driver. For more information, see your Windows documentation.
  4160. Configuring a Printer
  4161. After your printer is installed, you must set the printer
  4162. s connections and select the options you want 
  4163. to use as defaults. You can change to any other installed printer by using the Print Setup command 
  4164. on the File menu in Word. See "Changing Printers," later in this file.  To configure printers, choose Printers from the Settings menu in the Windows Control Panel, and then choose the Configure button. For more information about configuring printers, see your Windows documentation.
  4165. WrapCount
  4166. MenuMaker
  4167. Eatclicks
  4168. ColorMetrix
  4169. color
  4170. 180,50,100
  4171. TOOLBOX FOR TOOLBOOK
  4172. Redmon Group
  4173. --Programming 
  4174. H:        John 
  4175. Jeffrey S. Howard
  4176. --Designs 
  4177. H:            
  4178. Veronica Cruz
  4179. Daniel Lazenby
  4180. --Last Modified 
  4181. Date 
  4182. :    February 2, 1992
  4183. 4menuVisit
  4184. menuSetup
  4185. colormetrixSetup
  4186. c"File" 
  4187. c"Edit" 
  4188. c"Text" 
  4189. c"Page" 
  4190. c"Help" 
  4191. "&Open" 
  4192. "E&xit" 
  4193. c"&Tools" 
  4194. e"&About" 
  4195. "Animator" 
  4196. "Colormetrix" 
  4197. "Eat Clicks" 
  4198. "MenuMaker" 
  4199. "PageLook" 
  4200. "Ramp" 
  4201. "Timer" 
  4202. "WrapTextCounter" 
  4203. 0,100,0
  4204. "test" 
  4205. "colormetrix1" 
  4206. 0,100,0
  4207. 0,0,0
  4208. animator
  4209. pageLook
  4210. Menumaker
  4211. "menuMaker"
  4212. wraptextcounter
  4213. "wrapCounter"
  4214. eatClicks
  4215. timer
  4216. "Are you sure that 
  4217. want 
  4218. Toolbox?" 
  4219. f"Yes" 
  4220. about
  4221. /"Toolbox_menu" 
  4222. terBook
  4223. keyDown
  4224. enterPage
  4225. animator
  4226. pageLook
  4227. reader
  4228. Menumaker
  4229. leaveBook
  4230. wraptextcounter
  4231. menuSetup
  4232. eatClicks
  4233. colormetrixSetup
  4234. colormetrix
  4235. timer
  4236. enterBook
  4237. about
  4238. enterBook
  4239. sizeToPage
  4240. reader
  4241. menuSetup
  4242. colormetrixSetup
  4243. menuVisit
  4244. leaveBook
  4245. enterPage
  4246. reader
  4247. menuSetup
  4248. &File
  4249. &Open
  4250. E&xit
  4251. &Tools
  4252. &About
  4253. Tools
  4254. Tools
  4255. Animator
  4256. Tools
  4257. Colormetrix
  4258. Tools
  4259. Eat Clicks
  4260. Tools
  4261. MenuMaker
  4262. Tools
  4263. PageLook
  4264. Tools
  4265. Tools
  4266. Timer
  4267. Tools
  4268. WrapTextCounter
  4269. Tools
  4270. colormetrixSetup
  4271. Colormetrix
  4272. colormetrix1
  4273. colormetrix1
  4274. keyDown
  4275. author
  4276. animator
  4277. animator
  4278. pageLook
  4279. pageLook
  4280. Menumaker
  4281. menuMaker
  4282. wraptextcounter
  4283. wrapCounter
  4284. eatClicks
  4285. eatClicks
  4286. colormetrix
  4287. colormetrix1
  4288. timer
  4289. timer
  4290. Are you sure that you want to exit Toolbox?
  4291. about
  4292. buttonUp
  4293. About
  4294. Toolbox_menu
  4295.